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.
For native backend media playback, install yt-dlp and set YT_DLP_PATH to its absolute executable path if it is outside /usr/local/bin/yt-dlp. See Environment variables for executable directory requirements.
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 the fixture-based screenshots (dashboard, Bot Hub, media bots, IPTV, flows, permissions compare); does not update the Demo screenshots |
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 (fixture-based images only), review every changed image for readable text and shipped behavior, then run the normal production Playwright suite. The spec seeds the ts6-ui store with every sidebar section expanded; keep its version equal to COMPACT_SIDEBAR_DEFAULTS_VERSION in ui.store.ts, or the app's migration collapses System and Automation again. Do not substitute captures from a personal TeamSpeak deployment.
Demo-server screenshots¶
channels.png, clients.png, server-groups.png, permissions-editor.png, server-logs.png, and demo-connection.png are not produced by docs:screenshots. Capture them from a running manager using the built-in Demo TeamSpeak Server; they contain only synthetic demo data.
- Use pnpm 9, then
pnpm install --frozen-lockfile,pnpm db:generate, andpnpm --filter @ts6/common build. - Start a scratch backend (
pnpm dev:backendwith a throwawayDATABASE_URL,JWT_SECRET, andENCRYPTION_KEY; runnpx prisma db pushinpackages/backendfirst) and the frontend (pnpm dev:frontend). - Open
/setupto create a scratch admin, then add the demo connection (Settings → Connections → Add connection → Demo). - Set the UI to the Dark base theme with the Cyan accent, use a 1600×1000 viewport, and expand every sidebar section (System and Automation are collapsed by default), and capture the top-left 1600×960 region of each page:
/channels,/clients,/server-groups(select Server Admin),/permissions(select Moderator and expand sections),/logs, and Settings → Connections. - Review each image for readable text before committing.
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¶
Full local stack with TeamSpeak 6 (6.0.0-beta14) — preferred clone / PR happy path:
Then open http://localhost:3000/setup, create the first admin, and log in. The bundled TeamSpeak connection (WebQuery + SSH Query) is seeded automatically when LOCAL_DEV_BOOTSTRAP_CONNECTION=1. Demo mode remains available separately.
Manager only (no TeamSpeak container):
Release images are published only from immutable releases, not ordinary pushes to main.