Skip to content

About

Deliverable monorepo for the evanopolis game project

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

101 Commits

Folders and files

Repository files navigation

Evanopolis Deliverable

Evanopolis is a multiplayer board game about property ownership and Bitcoin mining.

This monorepo is the public consolidation target for the final deliverable: the gameplay server, browser wrapper, game clients, deployment assets, and the docs needed to hand the project over cleanly.

The private auth service is intentionally not implemented here. By client requirement, it remains in the separate sibling repository ../tabletop-auth and is treated in this repo as an external dependency.

Table Of Contents

What This Repo Delivers

The final deliverable is centered on a few core pieces:

  • an authoritative headless game server that owns match rules and live state
  • a browser wrapper for sign-in, room creation, invitation handling, and launch
  • a standalone rooms API for room-definition creation and lookup
  • a final graphical client adapted from the approved offline UI slice
  • deployment assets and runbooks for staging and final hosting

High-Level Architecture

At a high level, the stack is:

  • auth-server: private external service for wallet sign-in, JWT issuance, and payment/auth verification
  • rooms-api: public REST service for creating room definitions and looking them up by game_id
  • game-server: authoritative Godot headless runtime for live matches and gameplay RPC
  • web-wrapper: browser shell for creating rooms, opening invite links, and launching the client
  • graphical-client: player-facing client that consumes authoritative multiplayer events
flowchart LR
    Player[Player]
    Wallet[Wallet]

    subgraph Public["Public Deliverable"]
        Wrapper[web-wrapper]
        Rooms[rooms-api]
        Game[game-server]
        Client[graphical-client]
    end

    subgraph Private["Private Dependency"]
        Auth[auth-server / tabletop-auth]
    end

    Player --> Wrapper
    Wrapper --> Wallet

    Wrapper -->|create room / open invite| Rooms
    Wrapper -->|launch game with game_id| Client
    Client -->|WebSocket gameplay RPC| Game

    Wrapper -->|sign-in flow| Auth
    Rooms -->|verify JWT for POST /v0/rooms| Auth
    Client -->|JWT handoff| Game
    Game -->|verify JWT| Auth
    Game -->|load room definition by game_id| Rooms
Loading

The current intended flow is:

  1. a player signs in through the auth flow
  2. the wrapper calls rooms-api to create a room and gets back a UUID game_id
  3. invitees open a wrapper URL carrying that game_id
  4. clients connect to the game server over WebSocket RPC
  5. the game server verifies auth, loads the room definition, and lazily creates the live in-memory match on first valid join

Repository Map

  • apps/auth-server/ Public integration stub for the private auth service.
  • apps/rooms-api/ Canonical REST surface for room creation and room-definition lookup.
  • apps/game-server/ Authoritative multiplayer server, rules engine, and current deployable core.
  • apps/web-wrapper/ Browser shell around room creation, invitations, and launch flow.
  • apps/graphical-client/ Final player-facing client target.
  • TODO.md Active delivery source of truth for launch blockers, sequencing, and parking lot items.
  • deploy/ Deployment assets, Dockerfiles, and staging/cloud notes.
  • docs/migration/ Historical migration context. Active delivery planning now lives in TODO.md.
  • tests/ Cross-app integration and environment validation assets.

Start Here

If you are new to the codebase, this reading order should get you productive quickly:

  1. Read this README for the product and repo overview.
  2. Read TODO.md for the active delivery sequence and current launch blockers.
  3. Read Game Server README for the current runnable core of the stack.
  4. Read Rooms API README and Rooms API Contract for the current room creation direction.
  5. Read Web Wrapper README for the browser flow responsibilities.
  6. Read Game Server Rooms API Integration and Game Server RPC Contract for the current server-side contracts.
  7. Read Deploy README for local and staging deployment context.
  8. Read Local Stack Runbook for the current terminal-by-terminal development path against the sibling private auth repo.
  9. Use Server-First Migration Roadmap only as historical context, not as the active backlog.

Deploying The Final Stack

This README is only the welcome page. It does not try to be the full cloud runbook.

For a final AWS-hosted version, the deployment will need at least:

  • a public host for web-wrapper
  • a public host for rooms-api
  • a public host for game-server WebSocket traffic
  • connectivity from game-server and rooms-api to the private auth service
  • runtime configuration for auth base URLs, JWT verification expectations, and any rooms-api persistence backend
  • a persistence choice for room definitions so invite links survive service restarts
  • TLS, DNS, and environment/secret management for all public endpoints
  • operator-facing smoke checks and staging validation before production rollout

Today, the checked-in Fly.io staging paths cover:

As the AWS path is defined, the detailed bootstrap and operations material should live under deploy/ rather than being expanded inline here.

Published Artifacts

The headless game server image is published automatically on pushes to main:

  • ghcr.io/falafel-open-games/evanopolis-game-server:latest
  • docker.io/fczuardi/evanopolis-game-server:latest

The rooms API and web wrapper image publishing workflows are also checked in:

  • ghcr.io/falafel-open-games/evanopolis-rooms-api:latest
  • docker.io/fczuardi/evanopolis-rooms-api:latest
  • ghcr.io/falafel-open-games/evanopolis-web-wrapper:latest
  • docker.io/fczuardi/evanopolis-web-wrapper:latest

See apps/game-server/README.md and deploy/README.md for current run and staging details.

Related Repositories

  • private auth source: ../tabletop-auth
  • game server migration source: ../evanopolis-ui-slice/godot2
  • approved offline UI/client source: ../evanopolis-ui-slice/godot

About

Deliverable monorepo for the evanopolis game project

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages