The idea of Pur Beurre is to create a program that interacts with the OpenFoodFacts database. This program makes it possible to recover food from the database of OpenFoodFacts, compare them and offer the user a healthier substitute to the food that he chose previously. : link to github
Clone the repository on your computer.
Set your virtual environment under python 3.9
Install mysql_server on your computer mysql_server
python -m venv .venv # create the virtual environment
. .venv/Scripts/activate # activate the virtual environment
pip install -r requirements.txt # install the dependencies
touch .env # create a file where you'll put your mysql server informations
USER = "your_username"
PASSWORD = "your_password"
HOST = "localhost"
DATABASE = "openfoodfacts"
CHARSET = "utf8"
source ../create_database.sql # mysql server
python install.py # Implement the database with the datas extracted from the API
python main.py