The Calorie Counter Web Application is designed to help users manage their calorie intake and monitor their daily activities' impact on their health. It provides a simple and user-friendly interface for users to register, log in, add their personal details, calculate their BMI, and track their calorie consumption through various activities.
This project is built using Flask, SQLAlchemy for database management, and integrates with the Nutritionix API to fetch nutritional data for different activities.
screen-recording-2023-10-09-at-213452-no86exyp_Q1s0pWn6.mov
-
User Registration: Users can create accounts by providing a username, email, and password.
-
User Authentication: Registered users can log in securely.
-
Personal Details: Users can add and update their personal details, including gender, weight, height, and age.
-
BMI Calculation: The application calculates the user's BMI based on the provided weight and height.
-
Calorie Tracking: Users can track their calorie consumption by logging various physical activities.
-
Nutritional Data: Nutritional information for activities is fetched from the Nutritionix API.
-
Clone the repository to your local machine.
-
Install the required packages using
pip
:pip install -r requirements.txt
-
Run the application:
python main.py
Configure the environment variables:
- Create a
.env
file in the project root directory. - Add your Nutritionix API credentials to the
.env
file.
NUTRITION_API_KEY=your_api_key_here
NUTRITION_API_ID=your_api_id_here
-
Register for a new account or log in with an existing one.
-
Add your personal details, including gender, weight, height, and age.
-
Calculate your BMI based on the provided details.
-
Log various physical activities to track calorie consumption.
-
Log out when you're finished.