A comprehensive web application that generates personalized fitness and nutrition plans based on user metrics, preferences, and goals.
- Metrics Calculation: Calculates BMI, body fat percentage, BMR, TDEE, and macronutrient recommendations
- AI-Powered Plan Generation: Creates personalized workout routines and meal plans using AI (Ollama)
- PDF Generation: Provides downloadable PDF fitness plans with all recommendations
- Age-Appropriate Modifications: Special considerations for users over 50
- Educational Resources: Informative pages about fitness metrics, nutrition, and workouts
- Frontend: React, Material-UI, Recharts
- Backend: Flask (Python), FPDF
- AI: Ollama (using deepseek-r1:8b model)
- Database: Optional integration with Supabase
- Python 3.8+
- Node.js 16+
- Ollama installed and running with the
deepseek-r1:8bmodel
-
Create a virtual environment:
python -m venv venv -
Activate the virtual environment:
- Windows:
venv\Scripts\activate.ps1 # PowerShell venv\Scripts\activate.bat # Command Prompt - macOS/Linux:
source venv/bin/activate
- Windows:
-
Install dependencies:
pip install -r requirements.txt -
Start the Flask server:
python -m flask --app api.app run --debug
-
Navigate to the frontend directory:
cd frontend -
Install dependencies:
npm install -
Start the development server:
npm start
- Make sure Ollama is installed and running
- Pull the deepseek-r1:8b model:
ollama pull deepseek-r1:8b
- Open your browser and navigate to
http://localhost:3000 - Fill out the form with your personal details and preferences
- Submit the form to generate your personalized fitness plan
- View your metrics and download your personalized PDF plan
MIT
Created with ❤️ using React, Flask, and Ollama