Skip to content

Quick Start

Development Mode

Start both frontend and backend with hot reload:

Terminal window
pnpm dev

Open http://localhost:5173 in your browser.

The development server provides:

  • Hot module replacement (HMR) for instant updates
  • Automatic TypeScript compilation
  • Real-time Socket.io connection

Production Build

Build for production deployment:

Terminal window
pnpm build

This creates optimized bundles in:

  • apps/web/build/ - Frontend static files
  • apps/server/dist/ - Backend compiled JavaScript

Start Production Server

Terminal window
pnpm start

The server runs on port 3000 and serves both the API and frontend.

Available Commands

CommandDescription
pnpm installInstall all dependencies
pnpm devStart dev servers (frontend + backend)
pnpm buildProduction build
pnpm startStart production server
pnpm lintRun ESLint
pnpm typecheckRun TypeScript checks

Testing Locally

  1. Open http://localhost:5173 in 5 different browser tabs
  2. Each tab is a different player (uses unique session ID)
  3. When 5 players join, the game auto-starts
  4. Draw, vote, and see results!

Environment Variables

None required! The server auto-detects:

  • Available RAM for player limits
  • Development vs production mode
  • CORS settings

Next Steps