Developing / Building the Radar
Prerequiresits
Valthrun requires the Rust toolchain to be compiled.
注意
As Rust nightly features are used by Valthrun, you must first switch to Rust nightly.
Switching to the Rust nightly compiler can be done by the following command:
rustup default nightly
Setup development environment
备注
This is only for the dev environment.
The Valthrun repository does contain all release files (e.g. the server, dedicated client and the HTML files).
In order to use the radar you have to do some steps:
-
Start the pub / sub server:
cd radar\server-standalone
cargo r -
Start the standalone radar client (cs2 needs to be open)
cd radar\client-standalone
cargo r -- -s 127.0.0.1:7228 -
Start the web page via webpack-dev-server
cd radar\web
$env:SERVER_URL="ws://127.0.0.1:7229/subscribe"
$env:NODE_ENV="development"
yarn start:dev
Build the radar
-
Build the pub / sub server
cargo build --release radar-server-standalone