Heavily inspired by Stellaru. This is a learn-rust-the-hard-way project, and I chose this project because I play stellaris a LOT, and stellaru is quite slow.
Prereqs:
- Install Rustup;
- run
cargo install cargo-watch systemfd
; - Install npm;
cargo build --all --release
cargo build --all
cd frontend/
npm install
cd production_data
./prepare_data.sh;
If you want to use HTTPS, point $STELLARUST_CERT
and $STELLARUST_KEY
to the cert and key files, respectively. I used mkcert to generate the keys and make firefox accept them.
Then run the following VSCode Task:
- run
Deploy Stellarust In Production Mode With Automagic Redeployement
- navigate to
localhost:8000
If you are debugging the HTTP(S) frontend, run the following VSCode Task:
- Debug HTTP(S) Client