Local Development

Updated: 2026-05-22

Run frontend, backend, and runtime together for complete local testing.

  1. Backend API process.
  2. Frontend web app process.
  3. ShellRunners runtime process.
  4. Flappy Bots runtime process.
  5. Docs site process when editing public docs.

Typical Startup Order

  1. Start backend and verify health endpoint.
  2. Start runtime services and verify runtime routes load.
  3. Start frontend and verify game pages can reach runtime and backend.
  4. Start docs site when editing docs-site/docs.

Useful Local Checks

  1. Identity registration path.
  2. Auth nonce/verify path.
  3. Session start and live list path.
  4. Snapshot/readiness/payout path.
  5. Market listing helper and visibility path.
  6. Practice mode remains public and excluded from live/spectate lists.
  7. Leaderboard filters for game/time/sort/hide-zero.
  8. Voting status/counts by game slug.

Quality Gates

  1. Lint.
  2. Typecheck.
  3. Build.
  4. Contract tests where relevant.

Local Debug Advice

  1. Check backend logs first for auth/session/payout failures.
  2. Confirm frontend is using expected API base.
  3. Confirm runtime receives and uses valid play/spectate tokens.
  4. Confirm runtime URL env vars point to local runtime ports in development and production subdomains in deployment.
  5. 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.