Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/egilsster/wodbook-api

Back-end for a mobile application that helps you keep track of training movements and workouts
https://github.com/egilsster/wodbook-api

docker rust

Last synced: 18 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# wodbook api

Back-end for the [wodbook-app](https://github.com/egilsster/wodbook-app).

## Prerequisites

- Rust (1.43.0+)
- Docker

## Usage

```sh
# 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](api-docs.yml)

## 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