Live Deployment
- URL: https://your-vercel-url.vercel.app/court-room
 - Platform: Vercel (Cloud Deployment) (also deployed through aws)
 
Local Setup
npm install
npx prisma generate
npm run devFeatures Completed
- ✅ Court Room Game with timer, evidence, witnesses, objections
 - ✅ CRUD APIs with Prisma + PostgreSQL
 - ✅ Docker containerization
 - ✅ Playwright automated tests (5 tests passing)
 - ✅ Lighthouse performance report (94 score)
 - ✅ JMeter load testing (58ms avg response)
 - ✅ Cloud deployment on Vercel
 
Testing
npm run test              # Playwright tests
npm run test:lighthouse   # Lighthouse audit
npm run test:jmeter       # Load testingDatabase
- PostgreSQL on Prisma.io
 - Prisma ORM for database operations
 
Tech
- Next.js 14
 - Prisma + PostgreSQL
 - Docker
 - Playwright, Lighthouse, JMeter
 - Vercel Cloud Platform
 
- ✅ Timer with start/pause/reset functionality
 - ✅ Evidence selection (multiple checkboxes)
 - ✅ Witness calling and cross-examination
 - ✅ Objection system (sustain/overrule)
 - ✅ Jury deliberation and verdict delivery
 - ✅ Multiple case generation (random case details)
 
- ✅ Prisma ORM with PostgreSQL database
 - ✅ Full CRUD operations:
- POST 
/api/decisions- Save court decisions - GET 
/api/decisions- Retrieve all decisions - GET 
/api/decisions/[id]- Get specific decision - DELETE 
/api/decisions/[id]- Delete decision 
 - POST 
 - ✅ Database schema with proper relationships
 - ✅ Data persistence (test by saving decisions on live site)
 
Database: PostgreSQL hosted on Prisma.io
Test: Save a decision on live site, refresh page - data persists
- ✅ Dockerfile in project root
 - ✅ Multi-stage build for optimization
 - ✅ Container runs application with database access
 - ✅ Docker Compose configuration
 
To test locally:
docker build -t courtroom-app .
docker run -p 3000:3000 courtroom-app- ✅ Playwright Tests: 5 automated UI tests (all passing)
- Test results: 
test-results/directory 
 - Test results: 
 - ✅ Lighthouse Audit: Performance score 94/100
- Report: 
lighthouse-report.html 
 - Report: 
 - ✅ JMeter Load Testing: 58ms avg response, 0% errors
- Report: 
jmeter-results.jtl 
 - Report: 
 
Run tests locally:
npm run test              # Playwright
npm run test:lighthouse   # Lighthouse
npm run test:jmeter       # JMeter- ✅ Deployed on Vercel cloud platform
 - ✅ PostgreSQL database in cloud (Prisma.io)
 - ✅ Public URL accessible 24/7
 - ✅ Environment variables properly configured
 - ✅ Production-ready with HTTPS
 
npm install npm run dev
- Header (student number), nav + hamburger
 - Light/Dark (+ extra palette), persisted
 - Cookie remembers last route
 - /tabs: add/rename/delete up to 15, persisted via localStorage
 - Copy Output → standalone HTML (inline CSS + JS). Provided: Hello-1.html, Hello-3.html, Hello-5.html