Go to file
2017-12-05 18:35:22 +01:00
lib Remove unnecessary parentheses 2017-12-05 12:44:48 +01:00
src Refactor reset in StatefulEventHandler 2017-12-05 18:35:22 +01:00
.gitignore Remove lib/ from .gitignore 2017-11-27 21:08:27 +01:00
.pyenvrc Rearrange project and dockerize 2017-11-27 21:09:56 +01:00
Dockerfile Rename lib folder's envvar 2017-12-05 12:48:01 +01:00
README.md Rename event_handler_example to event_handler_main 2017-12-04 21:50:41 +01:00
supervisord.conf Rename event_handler_example to event_handler_main 2017-12-04 21:50:41 +01:00

Tutorial Framework

Frontend dependencies

These aren't checked in, until the preferred method of dependency management is decided. Until then, they can be downloaded from the following locations:

Building and running with Docker

Simply issue docker build . in the root of the project. The first build could take a while as it's compiling a fresh Python package from source. Subsequent builds can reuse this layer, so their execution time is significantly shorter.

Run with docker run -p 4242:4242 <id> to bind the container's port to localhost.

Running locally

Open two terminals in the project root.

Issue

cd src/app/
PYTHONPATH="../../lib/" python app.py

in one, and

cd src/components/
PYTHONPATH="../../lib/" python event_handler_main.py

in the other.