This is a Flask application designed to help users track their workouts and exercises. It provides functionality for adding users, exercises, and workout sets, as well as tracking workout history.
Before you begin, ensure you have the following requirements installed:
- Python 3.x
- PostgreSQL
- Flask
- Flask-SQLAlchemy
-
Clone the repository:
git clone https://github.com/EarlHikky/flask-workout
-
Change into the project directory:
cd workout-tracker-app
-
Install Poetry if you haven't already:
pip install poetry
-
Install the required dependencies using Poetry:
poetry install
This will read the pyproject.toml file and install the necessary packages.
-
Set up the PostgreSQL database or another database:
- Create a PostgreSQL database named 'workouts'.
- Update the database URI in app.config['SQLALCHEMY_DATABASE_URI'] in app.py to match your PostgreSQL configuration.
-
Run the application:
poetry run python app.py
The application will be accessible at http://localhost:5000/.
- Navigate to http://localhost:5000/user/add.
- Enter the user's name and submit the form.
- Navigate to http://localhost:5000/add_workout.
- Choose the workout type and click on "Продолжить тренировку" or "Создать новую тренировку."
- Start a new set or Продолжить from the last set by navigating to http://localhost:5000/set/start.
- Fill in the set details and submit the form.
- View a list of workouts at http://localhost:5000/workouts.
- View details of a specific workout by clicking on its date.
- Exercise management: Add, update, and delete exercises.
- Set management: View, update, and delete workout sets.
This project is licensed under the MIT License - see the LICENSE file for details.
- Flask documentation: https://flask.palletsprojects.com/