Giter Club home page Giter Club logo

pur_beurre's Introduction

pur_beurre

Projet 5 OC

  1. Make sure that python 3 and pip are properly installed on your computer.
  2. Then install pipenv if not already installed pip install --user pipenv
  3. If not installed, install mysql:
    • Connect to mysql and write : GRANT ALL PRIVILEGES ON pur_beurre.* TO 'USERNAME'@'localhost' IDENTIFIED BY 'PASSWORD';

Now you have all you need to run the script

  • Clone the github repository on your computer

  • Then cd pur_beurre

  • And init the pipenv pipenv install, note that it will install all the needed libraries and modules

  • Modify the config.json file, it has to be like this:

    {
        "categories": [
            "produits laitiers",
            "boissons",
            "desserts",
            "plats préparés",
            "snacks sucrés"
        ],
        "user": "USER",
        "password" : "PASSWORD",
        "server": "localhost"
    }

Run the script with pipenv run python3 main.py

  • If this is the first time you run the app you might have to wait a little before the menu appears. It is because the database is updating and making requests to Open Food Fact.
  • It is possible to update the databse when you want by running python3 main.py -update This wont affect the products you saved and this can be usefull if you want to change the categories from the config.json file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.