This little program will help you replace bad quality food with better ones. You will be able to choose between categories and products. Once you have chose a product, a substitute will be generated. The program is looking at the Nutri-Score of a product. The better product will always have a better score than the one you chose. All the informations are taken from the Openfoodfacts website.
- Python must be installed on your computer
- MySQL must be installed on your computer
- A MySQL database must be created under the name 'openfoodfacts'
- You need to put your database credentials in db-config.py
pipenv install
(if virtual environment not already installed)python3 -m core.install
python3 main.py
Enjoy!