A Django REST API backend for personalized workout management and AI-powered fitness coaching.
Fitness Colab is a comprehensive fitness platform that provides:
- Personalized Workout Generation: AI-powered workout recommendations based on user preferences and fitness goals
- Exercise Database Management: Comprehensive catalog of exercises, muscles, and equipment
- User Progress Tracking: Record and monitor workout sessions and fitness progress
- Real-time Chat Integration: AI fitness coaching
- Django 4.2.19 - Web framework
- Django REST Framework - REST API
- Django Channels - WebSocket support for real-time chat
See requirements.txt for complete list of dependencies.
- Python 3.12+
- Node.js and npm (for frontend integration)
-
Clone the repository
git clone https://github.com/m04f/FitTrack-AI cd fittrack-ai -
Enter the Nix shell environment
nix-shell
This will automatically install all Python dependencies and set up the environment.
-
Run database migrations
python manage.py migrate
-
Create a superuser (optional)
python manage.py createsuperuser
-
Start the development server
python manage.py runserver
-
Clone the repository
git clone https://github.com/m04f/FitTrack-AI cd fittrack-ai -
Create and activate virtual environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Run database migrations
python manage.py migrate
-
Create a superuser (optional)
python manage.py createsuperuser
-
Start the development server
python manage.py runserver
The application uses the following environment variables:
API_KEY: OpenAI API key for AI-powered featuresDEBUG: Set toFalsefor productionSECRET_KEY: Django secret key (change for production)ALLOWED_HOSTS: Comma-separated list of allowed hosts for production
The frontend implementation can be found at FitTrack-AI Frontend.