Local Development
Updated: 2026-05-22
Run frontend, backend, and runtime together for complete local testing.
Recommended Local Stack
- Backend API process.
- Frontend web app process.
- ShellRunners runtime process.
- Flappy Bots runtime process.
- Docs site process when editing public docs.
Typical Startup Order
- Start backend and verify health endpoint.
- Start runtime services and verify runtime routes load.
- Start frontend and verify game pages can reach runtime and backend.
- Start docs site when editing
docs-site/docs.
Useful Local Checks
- Identity registration path.
- Auth nonce/verify path.
- Session start and live list path.
- Snapshot/readiness/payout path.
- Market listing helper and visibility path.
- Practice mode remains public and excluded from live/spectate lists.
- Leaderboard filters for game/time/sort/hide-zero.
- Voting status/counts by game slug.
Quality Gates
- Lint.
- Typecheck.
- Build.
- Contract tests where relevant.
Local Debug Advice
- Check backend logs first for auth/session/payout failures.
- Confirm frontend is using expected API base.
- Confirm runtime receives and uses valid play/spectate tokens.
- Confirm runtime URL env vars point to local runtime ports in development and production subdomains in deployment.
- If a local runtime change appears once and then disappears, restart the dev server and remove the local Next build cache for that runtime repo.
