Skip to content

๐Ÿฆ„ Build Together AI Hackathon 2024 Canberra Winning team ๐Ÿ† - ๐ŸŒŽ Make the world better by turning your leftover ingredients into delectable meals, minimising food waste, and simplifying meal decisions!

License

Notifications You must be signed in to change notification settings

chen-gloria/leftover-to-recipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ‰ ๐Ÿซ’ ๐Ÿฅ• ๐ŸŒฝ ๐ŸŒถ๏ธ ๐Ÿซ‘ ๐Ÿฅ’ ๐Ÿฅฌ ๐Ÿฅฆ ๐Ÿง„ ๐Ÿง… ย ย โฎ•โฎ•ย ย ๐Ÿœ ๐Ÿฒ ๐Ÿฅ˜ ๐Ÿ› ๐Ÿฅ—

Leftover to Recipe
Build Together AI Hackathon 2024 - Building for a Better World

๐Ÿ“ข 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

Background

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.

Project Description

Purposes

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.

Logo


Our Logo

Deployment to heroku

https://leftover-to-recipe-380643b48bf7.herokuapp.com/

or try to scan


QR Code for live

Demo video

Use Command + Click(in MacOS) or Ctrl + Click(in Linux and Windows) to open and watch this video in a new page:

Watch the demo

๐ŸŒŽ How does this make the world better?

  • 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.

Current Features:

  • 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.

Upcoming Features:

  • 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.

Technical stack: What is it & how to run this app in local?

1. What is in the stack?

We use Symfony, a PHP framework using for website app development for front end and back end development.

2. How to run this app in your local?

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:

// 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 or http://localhost:8000/ to see the project

About

๐Ÿฆ„ Build Together AI Hackathon 2024 Canberra Winning team ๐Ÿ† - ๐ŸŒŽ Make the world better by turning your leftover ingredients into delectable meals, minimising food waste, and simplifying meal decisions!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published