Skip to content

Public and judging API backend for the surfjudge application. Implemented in rust.

Notifications You must be signed in to change notification settings

dariogoetz/surfjudge-actix

Repository files navigation

Installation of dev system

  1. Install docker
  2. Install docker-compose
  3. Run sudo docker-compose up -d in top directory
  4. Fill database with test data cat pgdumpfile | sudo docker exec -i surfjudge-actix_postgres_1 psql -U postgres
  5. Install rust curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  6. Build the project and run cargo run

Installation of dev system for generating statically linked executable

  1. Perform installation of dev system
  2. Install musl, e.g. pacman -S musl
  3. Install musl target for rust rustup target add x86_64-unknown-linux-musl --toolchain=1.45.2
  4. Build the executable cargo build --release --target=x86_64-unknown-linux-musl

Notes

  • put static files into a static directory next to src
  • put index html files (index.html, index-judging.html, index-admin.html) into a templates directory next to src

About

Public and judging API backend for the surfjudge application. Implemented in rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages