This Django-powered web application provides personalized training recommendations based on user profiles. The primary goal is to offer customized fitness guidance that aligns with individual health metrics. Users can register by providing basic information such as gender, age, height, and weight. The platform then offers tailored health and training advice. Additionally, the website features an open API to deliver custom training videos to developers in real-time.
To begin using this project, ensure you have Python and Django installed on your system. The latest version of Python can be downloaded from the official Python website.
- Create the Project Folder
mkdir sports-recommendation-website
- Install Virtualenv
sudo pip3 install virtualenv
- Create a Virtual Environment
python3 -m venv venv
- Activate the Virtual Environment
-
On macOS / Linux:
source venv/bin/activate
-
On Windows:
venv\Scripts\activate
-
Install Required Packages
Ensure all dependencies are installed:
pip install -r requirements.txt
-
Database Migrations
Configure the database by running the following commands:
python manage.py makemigrations
python manage.py migrate
-
Run the Development Server
Start the Django development server using:
python manage.py runserver
The project follows Django's recommended project structure, composed of the following directories and files:
sports-recommendation-website/
├── health/ # Contains the main application code
├── api/ # Contains the project API code
├── user/ # Contains the project user-related code
├── manage.py # Django command-line utility
└── requirements.txt # Project dependencies
All project dependencies are listed in the requirements.txt
file. To install them, use:
pip install -r requirements.txt
After activating your virtual environment and installing necessary packages, run the development server with:
python manage.py runserver
The API interface provides customized training videos to developers. Comprehensive API documentation is available within the api/
directory of the project.
-
Get Training Recommendations
- URL:
/api/training-recommendations/
- Method:
GET
- Description: Returns a list of training recommendations based on user's profile data.
- URL:
For detailed information on each endpoint, refer to the API documentation files contained within the api/
directory.
For any further questions or contributions, feel free to open an issue or submit a pull request.