Skip to content

Back-end for a mobile application that helps you keep track of training movements and workouts

Notifications You must be signed in to change notification settings

egilsster/wodbook-api

Repository files navigation

wodbook api

Back-end for the wodbook-app.

Prerequisites

  • Rust (1.43.0+)
  • Docker

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:

  • 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:

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

About

Back-end for a mobile application that helps you keep track of training movements and workouts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors 4

  •  
  •  
  •  
  •