Real-time multiplayer chess over WebSockets (Rust + Axum). Static UI and Stockfish are included in static/.
- In the DigitalOcean control panel, open Apps → Create App.
- Connect GitHub and choose this repository and branch (
main). - App Platform should detect the
Dockerfileat the repo root. Confirm:- HTTP port:
8000(matchesEXPOSEin the Dockerfile andhttp_portinapp.yaml).
- HTTP port:
- Create the app and wait for the first deploy.
-
Fork or clone the repo and push it to a GitHub account that DigitalOcean can access.
-
Edit
app.yamland setservices[0].github.repoto your GitHub repo (for exampleyour-user/rust-chess). -
Install doctl, run
doctl auth init, then:doctl apps create --spec app.yaml
To update an existing app, use
doctl apps update <app-id> --spec app.yaml.
PORT: The server readsPORTfrom the environment (default8000). The sampleapp.yamlsetsPORT=8000for clarity; App Platform also injectsPORTwhen routing HTTP to your container.- Single instance: Game state is in memory. Use one instance (as in
app.yaml) unless you add shared storage and redesign session affinity.
cargo run --releaseOpen http://127.0.0.1:8000. Override the port with PORT=3000 cargo run --release if you like.
MIT — see LICENSE.