Skip to main content
Version: 0.4.0 β€” Wine Answers

For Developers

This page is the developer entrypoint. It links to quick start, local vs prod, testing, architecture, and deployment guides.

Services overview​

ServiceDirectoryPortDescription
PartyKit backendback/1999Real-time game state (Durable Object)
Astro frontendfront/4321Static site + React islands
Wine Answers Workerwine-answers-worker/1998Curated answer suggestions API (KV-backed)
Docusaurus docsdocs-site/3002Documentation site
Proxy Workerproxy-worker/β€”Routes /docs/* to docs Pages (production only)

Useful links:

If you are automating deployments or writing CI, start with the Deployment Guide and the examples in /.github/workflows/.

Running tests​

# Frontend unit tests (Vitest + RTL)
cd front && npm test

# E2E tests β€” requires Docker stack running first
docker-compose up --build -d
cd e2e && npm test -- --project=chromium

E2E test tags: @smoke (critical path), @full (complete game flow), @mobile (iOS layout). Run a specific tag:

cd e2e && npx playwright test --grep @smoke

Automation / AI entry points​

Machine-readable conventions for agents working in this codebase:

  • Canonical event shapes: event-reference.md β€” all WebSocket message types with full TypeScript payload shapes
  • Environment config: configuration.md β€” all env vars, all environments, one table
  • Deployment steps: deployment-guide.md β€” CLI-first, ordered sequence
  • State machine: gameplay-workflow.md β€” full phase diagram
  • Frontmatter conventions: each doc uses audience, tags, id