No best practices, no patterns, just vibes. Enter at your own risk!
A scrappy real-time game: Three.js on Mapbox with a React UI overlay, .NET 9 backend (SignalR), and PostgreSQL.
Playable demo: https://beta.playglenn.com
Prereqs: Node 18+, .NET 9 SDK, Docker
- Install deps
cd game-web && npm install- Env
Create
.env.localin the repo root with:
VITE_PUBLIC_MAPBOX_TOKEN=your_mapbox_token
ConnectionStrings__DefaultConnection=Host=localhost;Port=5435;Database=game_dev;Username=postgres;Password=postgres- Run
npm run start:db # Postgres on 5435
npm run start:api # API http://localhost:5001 (SignalR at /hubs/game)
npm run start:game # Vite http://localhost:5173/- Vite proxies
/apiand/hubsto the API on port 5001. - Backend auto-migrates and seeds in Development.