Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/egilsster/wodbook-api
- Owner: egilsster
- Created: 2017-12-24T15:07:42.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2024-10-07T04:33:18.000Z (about 1 month ago)
- Last Synced: 2024-10-11T20:17:24.025Z (about 1 month ago)
- Topics: docker, rust
- Language: Rust
- Homepage:
- Size: 4.17 MB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
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 notThat means the following order for timed workouts:
1. 100 seconds, non-Rx
2. 120 seconds, Rx
3. 120 seconds, non-Rx