This workspace has two folders:
frontend/contains the Vite + TypeScript app.backend/currently contains onlypackage.jsonandpackage-lock.json; there is no server entry file to run yet.packages/shared/contains the shared multiplayer types and protocol contracts.
This workspace has two runtime folders and one shared package:
frontend/contains the Vite + TypeScript client.backend/contains the Socket.IO + Express server.packages/shared/contains the shared multiplayer types and protocol contracts.
cd frontend
npm install
cd ../backend
npm installcd frontend
npm run devThis starts Vite on http://localhost:5173.
cd backend
npm run devThis starts the Socket.IO server on http://localhost:3000.
cd frontend
npm run dev:allThat starts the backend and frontend together from the frontend folder.
cd frontend
npm run buildcd backend
npm run buildcd backend
npm run startCopy the example files and fill in production values when you deploy.
frontend/.env.examplesetsVITE_BACKEND_URL.backend/.env.examplesetsPORTandFRONTEND_ORIGIN.
For local development, the defaults already point to localhost.
The repo now includes a basic CI workflow in .github/workflows/ci.yml that builds both apps on push and pull request.
For actual deployment, the easiest path is still provider-side auto deploys:
- Cloudflare Pages for the frontend
- DigitalOcean App Platform for the backend
Import shared types from @cargame/shared in both apps.