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
- Backend: Node.js + Express + Prisma + SQLite + JWT + bcrypt
- Frontend: React (Vite) + Tailwind
Open a terminal in backend/:
- Copy env file:
- Copy
backend/.env.exampletobackend/.env
- Install deps:
npm install
- Create DB + seed users + policy clauses:
npx prisma migrate dev --name initnpm run seed
- Start backend:
npm run dev
Backend runs at http://localhost:4000.
- Admin:
admin@example.com/Admin@123 - Reviewer:
reviewer@example.com/Reviewer@123
Open a terminal in frontend/:
- Install deps:
npm install
- Start frontend:
npm run dev
Frontend runs at http://localhost:5173.
- Login
- Create a case
- Open the case
- Ingest sources (add messages / order events / policy docs)
- Click Assemble to build timeline + claims
- Click Run policy check to map claims → clauses
- Submit reviewer decision with rationale (writes audit trail)