๐ ๐ซ ๐ฅ ๐ฝ ๐ถ๏ธ ๐ซ ๐ฅ ๐ฅฌ ๐ฅฆ ๐ง ๐ง ย ย โฎโฎย ย ๐ ๐ฒ ๐ฅ ๐ ๐ฅ
๐ข Turn your leftover ingredients into delectable meals, minimize food waste, and simplify meal decisions with Leftover to Recipe, your ultimate kitchen companion! -- Leftover to Recipe Team
According to United Nations News, with 783 million people going hungry globally, an equivalent of one billion meals are wasted every day. According to the UN Environment Programmeโs Food Waste Index Report 2024, 1.05 billion tonnes of food are wasted annually. This waste occurs across retail, food service, and household. Most of the worldโs food waste comes from households, totalling 631 million tonnes.
Source: Food Waste Index Report 2024, UN Environment Programme,
https://wedocs.unep.org/handle/20.500.11822/45230
Our project is dedicated to tackling the issue of households food waste while empowering individuals to manage their food consumption efficiently. By leveraging AI technology, we aim to create a sustainable solution that benefits both people and the environment.
Our project is designed with a dual purpose: to reduce food waste and help individuals keep track of the food they consume and have in their inventory. By utilising AI image recognition and data management, our app offers a comprehensive solution for smarter food management.
https://leftover-to-recipe-380643b48bf7.herokuapp.com/
or try to scan
Use Command + Click
(in MacOS) or Ctrl + Click
(in Linux and Windows) to open and watch this video in a new page:
-
1. Environmental Impact:
- Reduces the carbon footprint associated with food waste.
- Promotes sustainable living practices.
-
2. Economic Savings:
- Helps users save money by optimizing food usage.
- Reduces the need to purchase additional groceries unnecessarily.
-
3. Health and Well-being:
- Provides many meal options for users they may not have expected.
- Encourages healthy eating habits.
- Provides balanced and nutritious meal options.
By addressing the critical issue of food waste and promoting efficient food management, our project aims to build a better, more sustainable world. We believe that with the right tools and awareness, we can make a significant impact on both individual lives and the environment.
-
1. AI-Powered Food Recognition:
- Users can take images of the food items they have.
-
2. Recipe Generation:
- Based on the identified food items, the app generates a variety of recipes.
- Recipes are tailored to utilize the available ingredients, ensuring minimal waste.
-
1. Meal Planning Assistance:
- The app suggests meal plans based on the user's food inventory.
- Customized plans ensure a balanced diet and efficient use of resources.
-
2. Food Inventory Management:
- The app keeps an up-to-date inventory of the user's food items.
- Users can easily track what food they have left and what they have consumed.
-
3. Expiration Date Alerts:
- Approaching expiration dates can be shown.
- Helps prevent food from spoiling and reduces unnecessary waste.
-
4. Sustainability Insights:
- Users can view statistics on how much food waste they have prevented.
- The app provides tips on sustainable food practices.
-
5. Community Sharing: (the UI is done)
- Users can share excess food items with the community.
- Promotes a sharing economy and reduces overall food waste.
- Users can share there status and recipe.
-
6. Nutritional Information:
- The app provides detailed nutritional information for each food item and recipe.
- Users can make informed decisions about their diet.
We use Symfony, a PHP framework using for website app development for front end and back end development.
First of all, you do need a OpenAI Key ๐ to utilise the API. ๐ How to apply for a OpenAI Key?
Secondly, run this app up:
Here are the steps to follow:
- Step 1: Install PHP 8.2
- Step 2: Install Composer, which is used to install PHP packages.
- Step 3: Install Symfony CLI
// macOS
wget https://get.symfony.com/cli/installer -O - | bash
// Linux
wget https://get.symfony.com/cli/installer -O - | bash
// Windows
scoop install symfony-cli
- Step 4: Run
composer install
composer install
# Result
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
# ....
Generating autoload files
114 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Run composer recipes at any time to see the status of your Symfony recipes.
# [OK] means the packages have been installed
Executing script cache:clear [OK]
Executing script assets:install public [OK]
Executing script importmap:install [OK]
- Step 5: Before you start the server, set up your OpenAI Key in your local (
โ ๏ธ but be careful, do not push it to Github or create any pull request with it accidentally, keep it secret with you!)
php bin/console secrets:set OPEN_AI_KEY
Please type the secret value:
>
[OK] Secret "OPEN_AI_KEY" encrypted in "config/secrets/dev/"; you can commit it.
# To view the secrets that you just set
php bin/console secrets:list --reveal
------------- ------------------------------------------------------------ -------------
Secret Value Local Value
------------- ------------------------------------------------------------ -------------
OPEN_AI_KEY "your-key"
------------- ------------------------------------------------------------ -------------
- Step 6: Start the Symfony server
symfony server:start
# Result
[OK] Web server listening
The Web server is using PHP FPM 8.3.6
http://127.0.0.1:8000
- Step 7: Visit
http://127.0.0.1:8000
orhttp://localhost:8000/
to see the project