A simple Flask + SQLite API for tracking workouts.
Designed to run locally or inside a Docker container for easy deployment to a NAS or cloud server.
- Add new exercises (name, sets, reps)
- Retrieve list of all logged exercises
- Automatically timestamps each entry
- Lightweight, portable, and easy to expand
- Python 3.8+
- Flask
- SQLite (comes built-in with Python)
-
Clone the repository:
git clone [your repo url] cd WorkOutWebApp
-
Create a Python virtual environment and activate it:
python -m venv venv source venv/bin/activate
-
Install dependencies:
pip install flask
-
Run the application:
python app.py
-
The server will start on
http://localhost:5000/
.
Returns a simple message to confirm the server is running.
Adds a new exercise.
Request body:
{
"name": "Push-up",
"sets": 3,
"reps": 15
}