egilsster / wodbook-api

Back-end for a mobile application that helps you keep track of training movements and workouts
5 stars 1 forks source link
docker rust

wodbook api

Back-end for the wodbook-app.

Prerequisites

Usage

# 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

APIs

See api-docs

Scoring

Scores are sorted in the following order:

That means the following order for timed workouts:

  1. 100 seconds, non-Rx
  2. 120 seconds, Rx
  3. 120 seconds, non-Rx