codinguncut / python_faust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Started

  1. install docker
  2. install docker-compose
  3. install python3.6 or above
    • sudo apt-get install python3.6 python3.6-dev
    • setup a virtualenv (mkvirtualenv, pyvenv, or similar)
  4. install apt-get dependencies sudo ./install_deps.sh
  5. install python dependencies make
    • for some reason dev dependencies are not installing properly with pip-sync ;(
    • if things are not working, feel free to run again: pip install -r requirements.txt pip install -r requirements-dev.txt
  6. add 127.0.0.1 kafka to /etc/hosts
    • if you are on a machine with a fixed IP, set that IP in KAFKA_ADVERTISED_HOST_NAME
    • alternatively try network_mode: host in docker-compose.yml
    • ARGH
  7. download spacy model python -m spacy download en
  8. copy sample.env to .env and edit

Running

  1. start kafka, zookeeper and mongodb docker-compose up -d
  2. launch faust application ./run-faust.py

About


Languages

Language:Python 88.9%Language:Makefile 6.7%Language:Shell 4.3%