Quick Start
Development Mode
Start both frontend and backend with hot reload:
pnpm devOpen 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:
pnpm buildThis creates optimized bundles in:
apps/web/build/- Frontend static filesapps/server/dist/- Backend compiled JavaScript
Start Production Server
pnpm startThe server runs on port 3000 and serves both the API and frontend.
Available Commands
| Command | Description |
|---|---|
pnpm install | Install all dependencies |
pnpm dev | Start dev servers (frontend + backend) |
pnpm build | Production build |
pnpm start | Start production server |
pnpm lint | Run ESLint |
pnpm typecheck | Run TypeScript checks |
Testing Locally
- Open
http://localhost:5173in 5 different browser tabs - Each tab is a different player (uses unique session ID)
- When 5 players join, the game auto-starts
- 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
- Architecture Overview - Understand the system design
- Socket Events API - Learn the real-time protocol