- Install docker
- Install docker-compose
- Run
sudo docker-compose up -d
in top directory - Fill database with test data
cat pgdumpfile | sudo docker exec -i surfjudge-actix_postgres_1 psql -U postgres
- Install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Build the project and run
cargo run
- Perform installation of dev system
- Install musl, e.g.
pacman -S musl
- Install musl target for rust
rustup target add x86_64-unknown-linux-musl --toolchain=1.45.2
- Build the executable
cargo build --release --target=x86_64-unknown-linux-musl
- put static files into a
static
directory next tosrc
- put index html files (
index.html
,index-judging.html
,index-admin.html
) into atemplates
directory next tosrc