Skip to content

alecdwm/webtron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 nodejs and yarn 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.
  5. In another terminal, change to the client subdirectory with cd webtron/client.
  6. Run the client development server with yarn dev.

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

About

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

Topics

Resources

License

Stars

Watchers

Forks