Examples
Getting started
First, clone the project:
git clone https://github.com/TheNewThinkTank/fitness-tracker.git
Upload your workouts
- Add your workout log to the
data
folder under the correct workout date - Run
./bin/fitcli.sh
, optionally specify theWORKOUT_DATE
andTRAINING_PROGRAM
values - The
bin/fitcli.sh
script will then insert your log(s) into the TinyDB database
Running locally
# docker-compose up --build
docker compose --profile ci up --build --attach-dependencies --remove-orphans
# then visit http://localhost:5000
Run FastAPI with Docker from CLI:
docker-compose up
then visit this URL
Alternatively,
Or, running without containers:
Debugging:
from the url, open the browser's developer tools (F12
or Cmd+Shift+C
)
Testing endpoints locally
Overview of endpoints