Development¶
See PWA maintenance and validation for static cache boundaries, service-worker updates, deployment headers, and device QA.
Local development targets Node.js 20+ and pnpm 9.x. CI deliberately stays on pnpm 9 because newer pnpm majors change dependency build-script and override behavior.
Setup¶
corepack enable
corepack prepare pnpm@9.15.9 --activate
pnpm install --frozen-lockfile
pnpm db:generate
pnpm dev
The backend runs on port 3001 and the Vite frontend runs on port 5173 by default.
Useful workspace commands¶
| Command | Purpose |
|---|---|
pnpm dev |
Start workspace development servers |
pnpm dev:backend |
Start only the backend |
pnpm dev:frontend |
Start only the frontend |
pnpm build |
Build all packages |
pnpm typecheck |
Run workspace type checks |
pnpm audit |
Audit production dependencies |
pnpm db:generate |
Generate the Prisma client |
pnpm --filter @ts6/frontend docs:screenshots |
Rebuild the frontend and regenerate maintained screenshots from production fixtures |
Maintained screenshots¶
The documentation screenshots are generated by packages/frontend/tests/docs-screenshots.spec.ts against the production build and the opt-in fixture scenario in serve-production.mjs. The fixture uses generic demo identities, reserved .test URLs, and fixed browser time; it never reads local deployment credentials or personal infrastructure.
Run the screenshot command with pnpm 9, review every changed image for readable text and shipped behavior, then run the normal production Playwright suite. Do not substitute captures from a personal TeamSpeak deployment.
Database¶
The backend uses Prisma with SQLite.
For local development:
Docker production startup uses docker-commands/apply-schema.sh instead of requiring a manual migration step.
Containers¶
To build the local compose stack from source:
Release images are published only from immutable releases, not ordinary pushes to main.