A web application for tracking daily weight, food consumption, and calorie goals.
-
User Authentication:
- Secure registration and login system.
- Password reset functionality.
-
Weight Tracking:
- Record daily weight entries.
- View weight history with a progress chart.
-
Food Tracking:
- Log food entries with calorie, protein, fat, and carbs information.
- Search for food items using the USDA Food Database API.
-
Dashboard:
- Overview of recent weight and food entries.
- Visualize progress toward calorie and weight goals.
-
Responsive Design:
- Fully responsive UI built with Bootstrap for seamless use on desktop and mobile devices.
- Python 3.8 or higher
- Django 4.2 or higher
- Clone the repository:
git clone https://github.com/minhphung152/fitness_app.git
cd fitness_app- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Set up the database:
python manage.py makemigrations
python manage.py migrate- Start the development server:
python manage.py runserver- Open the app in your browser:
http://127.0.0.1:8000/- Register an account: Create a new account or log in with existing credentials.
- Track Weight: Add daily weight entries and view progress on the dashboard.
- Log Food: Search for food items and log them to track calorie intake.
- Monitor Progress: Use the dashboard to visualize weight trends and calorie goals.