- Install bun 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
.- If you don't have
cargo-watch
, you can install it withcargo install cargo-watch
- If you don't have
- In another terminal, change to the client subdirectory with
cd webtron/client
. - Run the client development server with
bun dev
.
The web client will be available at http://localhost:3000.