Git Product home page Git Product logo

flask-workout's Introduction

Workout Tracker App

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.

Getting Started

Prerequisites

Before you begin, ensure you have the following requirements installed:

Installation

  1. Clone the repository:

    git clone https://github.com/EarlHikky/flask-workout
  2. Change into the project directory:

    cd workout-tracker-app
  3. Install Poetry if you haven't already:

    pip install poetry
  4. Install the required dependencies using Poetry:

    poetry install

    This will read the pyproject.toml file and install the necessary packages.

  5. 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.
  6. Run the application:

    poetry run python app.py

The application will be accessible at http://localhost:5000/.

Usage

Adding a User

  1. Navigate to http://localhost:5000/user/add.
  2. Enter the user's name and submit the form.

Starting a New Workout

  1. Navigate to http://localhost:5000/add_workout.
  2. Choose the workout type and click on "Продолжить тренировку" or "Создать новую тренировку."

Adding a Workout Set

  1. Start a new set or Продолжить from the last set by navigating to http://localhost:5000/set/start.
  2. Fill in the set details and submit the form.

Viewing Workout History

Additional Features

  • Exercise management: Add, update, and delete exercises.
  • Set management: View, update, and delete workout sets.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

flask-workout's People

Contributors

earlhikky avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.