Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.41 KB

README.md

File metadata and controls

32 lines (22 loc) · 1.41 KB

webtron

A browser-based multiplayer implementation of the classic Tron Lightcycles arcade game.

a screenshot of an in-progress webtron game

Building the server binary from source

  1. Install bun for building the bundled web client.
  2. Install rustup.
  3. Install the latest stable rust toolchain with rustup toolchain install stable.
  4. Clone the project locally with git clone git@github.com:alecdwm/webtron.git.
  5. Change to the cloned directory with cd webtron.
  6. Build the project with cargo build --release.

The server binary will be located at target/release/webtron.

Running the server in development

  1. Install cargo-watch.
  2. Clone the project locally with git clone git@github.com:alecdwm/webtron.git.
  3. Change to the cloned directory with cd webtron.
  4. Run the server (and automatically restart it on code changes) with cargo watch -i 'client/**' -x fmt -x run.
    • If you don't have cargo-watch, you can install it with cargo install cargo-watch
  5. In another terminal, change to the client subdirectory with cd webtron/client.
  6. Run the client development server with bun dev.

The web client will be available at http://localhost:3000.