This pack combines the earlier Phase 1 working foundation with the Phase 2 service skeletons for the Polacheck's Jewelers internal watch sales allocation system.
- credentials login with signed cookie session
- role-aware dashboard
- customer create/edit flow
- brand catalog management
- model catalog management
- Prisma schema for MySQL
- seed data for demo users and starter catalog
- expanded schema for watch references, stock items, allocations, and catalog sync runs
- thewatchapi catalog client
- catalog import service skeleton
- inventory workbook parser
- allocation transaction service skeleton
- starter routes/pages for requirements, inventory, allocations, reports, and admin catalog sync
This is a combined starter pack:
- Phase 1 pages are the more complete/working part
- Phase 2 is included as scaffold + service layer starter code, not a finished production workflow yet
- thewatchapi endpoint paths may need a small adjustment once you test with your paid API key
All seeded users use the same password:
ChangeMe123!
- Copy environment file
cp .env.example .env-
Update
DATABASE_URL,JWT_SECRET,THEWATCHAPI_BASE_URL, andTHEWATCHAPI_API_KEY -
Install packages
npm install- Run migration
npx prisma migrate dev --name init_combined- Seed the database
npm run prisma:seed- Start the app
npm run devTurn the Phase 2 scaffold into working flows:
- requirement create/edit/status change
- inventory upload preview + commit
- assign watch to requirement
- mark sale complete
- expire active allocations with a scheduled job
- wire admin catalog sync UI to thewatchapi