Back-end for the wodbook-app.
- Rust (1.43.0+)
- Docker
# Copy example .env file
λ cp .env.example .env
# Run docker containers
λ docker compose -f docker-compose.yml up -d
# Run unit tests
λ cargo test
# Run the server (Add --release for an optimized build)
λ cargo run
...
[2022-06-09T20:26:56Z INFO wodbook_api::db::mongo] Connected to mongodb
[2022-06-09T20:26:56Z INFO wodbook_api] Starting server on 0.0.0.0:43210
[2022-06-09T20:26:56Z INFO actix_server::builder] Starting 8 workers
[2022-06-09T20:26:56Z INFO actix_server::server] Actix runtime found; starting in Actix runtime
See api-docs
Scores are sorted in the following order:
- By score
- For timed workouts: descending (lowest value first)
- For other workouts: ascending
- Wether it is Rx'd or not
That means the following order for timed workouts:
- 100 seconds, non-Rx
- 120 seconds, Rx
- 120 seconds, non-Rx