Demo Elassandra + Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
kibana
meetup
resources
static
templates
.dockerignore
.gitignore
Demo.md
Dockerfile
Makefile
README.md
blog.md
csvload.sh
docker-compose-local-linux.yml
docker-compose-local-mac.yml
docker-compose-prod-import.yml
docker-compose-prod-viz.yml
docker-compose-prod-web.yml
docker-entrypoint.sh
requirements.txt

README.md

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