- Install nodejs and yarn for building the bundled web client.
- Install rustup.
- Install the latest stable rust toolchain with
rustup toolchain install stable
. - Clone the project locally with
git clone [email protected]:alecdwm/webtron.git
. - Change to the cloned directory with
cd webtron
. - Build the project with
cargo build --release
.
The server binary will be located at target/release/webtron
.
- Install cargo-watch.
- Clone the project locally with
git clone [email protected]:alecdwm/webtron.git
. - Change to the cloned directory with
cd webtron
. - Run the server (and automatically restart it on code changes) with
cargo watch -i 'client/**' -x fmt -x run
. - In another terminal, change to the client subdirectory with
cd webtron/client
. - Run the client development server with
yarn dev
.
The web client will be available at https://localhost:3000.