This project is a Flask-based API for managing a fitness center's database. It provides endpoints to manage members and workout sessions.
- Clone the repository.
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
- Install the required packages:
pip install -r requirements.txt
- Configure your MySQL database connection in
app.py
. - Run the Flask application:
flask run
POST /members
: Add a new member.GET /members/<id>
: Retrieve a member by ID.PUT /members/<id>
: Update a member by ID.DELETE /members/<id>
: Delete a member by ID.POST /workouts
: Schedule a new workout session.GET /workouts
: View all workout sessions.GET /workouts/member/<member_id>
: View all workout sessions for a specific member.
This project is licensed under the MIT License - see the LICENSE file for details.