Skip to content

Praneeth01847/Returns-Case-Builder

Repository files navigation

Returns Case Builder (PS-18)

This repo contains a full-stack demo implementing the requirements from the prompt:

  • Case timeline assembled from messages / order events / policy docs with references to the input
  • Disputed claims extracted and mapped to policy clauses with evidence links
  • Responsibilities split into case assembly, policy checking, and final reviewer validation
  • Reviewer workflow (approve/reject + rationale) with audit trail

Tech stack

  • Backend: Node.js + Express + Prisma + SQLite + JWT + bcrypt
  • Frontend: React (Vite) + Tailwind

1) Backend setup

Open a terminal in backend/:

  1. Copy env file:
  • Copy backend/.env.example to backend/.env
  1. Install deps:
  • npm install
  1. Create DB + seed users + policy clauses:
  • npx prisma migrate dev --name init
  • npm run seed
  1. Start backend:
  • npm run dev

Backend runs at http://localhost:4000.

Seeded credentials

  • Admin: admin@example.com / Admin@123
  • Reviewer: reviewer@example.com / Reviewer@123

2) Frontend setup

Open a terminal in frontend/:

  1. Install deps:
  • npm install
  1. Start frontend:
  • npm run dev

Frontend runs at http://localhost:5173.

How to use

  1. Login
  2. Create a case
  3. Open the case
  4. Ingest sources (add messages / order events / policy docs)
  5. Click Assemble to build timeline + claims
  6. Click Run policy check to map claims → clauses
  7. Submit reviewer decision with rationale (writes audit trail)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors