Skip to content

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Polacheck's Jewelers - Combined Phase 1 + Phase 2 Starter

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.

What is included

Phase 1 working foundation

  • 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

Phase 2 starter modules

  • 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

Important note

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

Demo users

All seeded users use the same password:

ChangeMe123!

Setup

  1. Copy environment file
cp .env.example .env
  1. Update DATABASE_URL, JWT_SECRET, THEWATCHAPI_BASE_URL, and THEWATCHAPI_API_KEY

  2. Install packages

npm install
  1. Run migration
npx prisma migrate dev --name init_combined
  1. Seed the database
npm run prisma:seed
  1. Start the app
npm run dev

Suggested next build step

Turn 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

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages