Skip to content

Romderful/p5_openfoodfacts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenFoodFacts - Openclassrooms project 5

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

Installation

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

Usage

python main.py

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages