You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An end-to-end Flask + MongoDB web application connecting athletes, trainers, doctors,
and community admins with AI analytics, health tracking, QR digital IDs, and
role-based dashboards.
Quick Start
# 1. Install dependencies
pip install -r requirements.txt
# 2. Configure environment (copy and edit)
cp .env.example .env # or just edit .env directly# 3. Run the app
python app.py
# 4. Load demo data (first time only)
open http://localhost:5000/seed-demo-data
# 5. Login with any demo account
open http://localhost:5000/login
Performance — average training intensity × 1.25 (capped at 100)
Health — starts at 100, deducted for high BMI or blood pressure
Training — unique months of activity × 10 (capped at 100)
Diet — 100 if avg daily calories 1800–2500, else 70
Running Without MongoDB
The app detects when MongoDB is unavailable and automatically switches to an
in-memory mock database. All features work — data just resets on restart.
This is ideal for demos and testing.