Skip to content

strapdata/openfoodfacts

Repository files navigation

Python Meetup

Require python3

Standelone

Install the dependencies:

pip install -r requirements.txt
export PYTHONPATH="$(pwd)"

Import the data from Open Food Fact CSV:

wget https://fr.openfoodfacts.org/data/fr.openfoodfacts.org.products.csv -O fr.openfoodfacts.org.products.csv
python3 -m meetup.import

Start the web server:

python3 -m meetup.web

Dockerized

Build the docker image:

make build

Run a docker container including the application, the importer and kibana:

make up

Stop the docker container:

make down

Check application logs:

make logs

Open a shell in the web container:

make shell

Usage

References