Welcome to the Nutrition Scale App! This Flask web application allows users to search for food items, view their nutritional information, and keep track of their daily food consumption. 🍽️
- Search for Food: Enter the name of a food item to find its nutritional details.
- Calculate Nutrition: Get nutritional information based on the weight of the selected food item.
- Daily Consumption Tracker: Keep track of all the foods consumed in a day and see total nutrition.
- Clear Daily Data: Easily reset your daily consumption data.
- User-Friendly Interface: Built with Bootstrap for a clean and responsive design.
- User Login
- Phone app
- ESP Scale integration
- Data Tracking
This project is licensed under the Attribution-NonCommercial-ShareAlike 4.0 International License.
- Flask: A lightweight web framework for Python.
- Bootstrap: For responsive UI components.
- Requests: To make API calls to the FatSecret API for food data.
- dotenv: For managing environment variables.
-
Clone the Repository:
git clone https://github.com/GerasimosKan/nutrition-scale-app.git cd nutrition-scale-app
-
Install Dependencies:
pip install -r requirements.txt
-
Set Up Environment Variables: Create a
.env
file in the root directory with the following content:CLIENT_ID=your_client_id CLIENT_SECRET=your_client_secret
-
Run the Application:
python app.py
-
Access the App: Open your browser and go to
http://127.0.0.1:5000
.
- Search for Foods: Easily search for food items using the FatSecret API.
- Nutrition Calculation: Input the weight of selected food items to calculate nutrition values.
- Daily Consumption Tracker: Keep track of daily food intake and total nutrition values.
- Clear Day Button: Reset your daily entries with a single click.
- User-Friendly Interface: Built with Bootstrap for a responsive design.
- Flask: A lightweight WSGI web application framework for Python.
- FatSecret API: Provides access to a comprehensive food database and nutritional information.
- HTML/CSS: For front-end development and user interface.
- Bootstrap: For responsive and modern UI components.
- Clone the repository to your local machine.
git clone https://github.com/yourusername/nutrition-scale.git cd nutrition-scale
- Install the required dependencies.
pip install -r requirements.txt
- Set up your environment variables in a
.env
file using the provided example. - Run the Flask application.
python app.py
- Open your browser and navigate to
http://127.0.0.1:5000/
to use the application.
Contributions are welcome! If you'd like to improve this project, please fork the repository and submit a pull request.
- Thanks to FatSecret for providing the API for nutrition data.
- Inspired by community feedback and user needs.
Happy tracking! 🎉