Skip to content

hcm444/rust-chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-chess

Real-time multiplayer chess over WebSockets (Rust + Axum). Static UI and Stockfish are included in static/.

Deploy on DigitalOcean App Platform

From the GitHub UI

  1. In the DigitalOcean control panel, open AppsCreate App.
  2. Connect GitHub and choose this repository and branch (main).
  3. App Platform should detect the Dockerfile at the repo root. Confirm:
    • HTTP port: 8000 (matches EXPOSE in the Dockerfile and http_port in app.yaml).
  4. Create the app and wait for the first deploy.

From an app spec (app.yaml)

  1. Fork or clone the repo and push it to a GitHub account that DigitalOcean can access.

  2. Edit app.yaml and set services[0].github.repo to your GitHub repo (for example your-user/rust-chess).

  3. 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.

Notes

  • PORT: The server reads PORT from the environment (default 8000). The sample app.yaml sets PORT=8000 for clarity; App Platform also injects PORT when 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.

Run locally

cargo run --release

Open http://127.0.0.1:8000. Override the port with PORT=3000 cargo run --release if you like.

License

MIT — see LICENSE.

About

A multiplayer chess game written in Rust.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors