A from-scratch SvelteKit port of dispatch-demo-flat, the
hand-rolled Node/React/MobX dispatch app in the sibling folder. Built as a local-only
learning sandbox — same domain (service intake → dispatcher → technician), same
Postgres/Prisma backend, rebuilt with idiomatic SvelteKit instead of hand-rolled
routing/SSR/state.
See docs/README.md for a concept-by-concept comparison against the original project — what SvelteKit gives you for free, and the one deliberate gap (no WebSocket; the storm demo's live feed uses Server-Sent Events instead).
npm install
cp .env.example .env # already done if you're reading this after a fresh clone
npm run dev # boots embedded Postgres + the dev server (http://localhost:5173)First run only — in a second terminal, once npm run dev is up:
npm run db:migrate # creates prisma/migrations/ and applies it (prompts for nothing after the first time)
npm run db:seed # four named techniciansThen visit / (customer intake), /dispatch (dispatcher board), /technician
(technician view), /demo (storm load-test + live MapLibre map, fed over SSE).
npm run build
npm start # node --env-file-if-exists=.env build