Skip to content

Flask-based athlete management system for tracking training schedules, nutrition plans, and competition performance. Features athlete profiles, meal planning, supplement management, and trainer/doctor assignments. Built with Python, MySQL, and SQLAlchemy ORM.

Notifications You must be signed in to change notification settings

nezeracuk/athlete-training-management-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Athlete Training Management System

Project Overview

A Flask-based web application for managing athletes, their training schedules, meals, supplements, and competitions.

Table of Contents

Features

  • 🏃‍♂️ Athlete Management
    • Profile tracking
    • Statistics monitoring
    • Performance metrics
  • 📅 Training Schedule
    • Create/edit schedules
    • Assign trainers
  • 🍽️ Meal Planning
    • Meal tracking
    • Nutritional calculations
    • Ingredient management
  • 💊 Supplement Management
    • Dosage tracking
    • Intake scheduling
  • 🏆 Competition Tracking
    • Event management
    • Results recording
  • 👥 Staff Management
    • Trainer assignments
    • Doctor consultations

Tech Stack

  • Backend: Python 3.12, Flask framework
  • Database: MySQL
  • ORM: SQLAlchemy
  • Architecture: MVC pattern

Project Structure

app/
├── controller/     # Request handlers
├── dao/           # Database operations
├── domain/        # Data models
├── root/          # Route definitions
├── service/       # Business logic
└── config.py      # Configuration

Installation

  1. Clone repository
git clone https://github.com/nezeracuk/database-labs-LPNU.git
  1. Create virtual environment
python -m venv venv
.\venv\Scripts\activate
  1. Install dependencies
pip install -r app/requirements.txt
  1. Configure database
# filepath: app/config.py
SQLALCHEMY_DATABASE_URI = "mysql+pymysql://username:password@localhost/dbname"
  1. Initialize database
python app.py

API Documentation

Endpoints

  • /athlete - Athlete CRUD operations
  • /competition - Competition management
  • /meal - Meal and nutrition tracking
  • /schedule - Training schedule management
  • /trainer_doctor - Staff management
  • /supplement - Supplement tracking

Database Schema

Core Tables

  • athlete - Athlete information
  • competition - Competition details
  • meal - Meal records
  • schedule - Training schedules
  • trainer_doctor - Staff records
  • supplement - Supplement information
  • athlete_trainer - Relationship mapping
  • athlete_statistics - Performance metrics

Core Features

Data Management

  • Complete CRUD operations
  • Relationship handling
  • Data validation

Business Logic

  • Energy calculations
  • Statistics tracking
  • Automated table creation
  • Data validation triggers

About

Flask-based athlete management system for tracking training schedules, nutrition plans, and competition performance. Features athlete profiles, meal planning, supplement management, and trainer/doctor assignments. Built with Python, MySQL, and SQLAlchemy ORM.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages