Go to file
Bokros Bálint be6f657de1
Merge pull request #18 from avatao-content/callbackmixin
Refactor callback subscription stuff to a mixin
2018-03-07 12:05:03 +01:00
lib Refactor callback subscription stuff to a mixin 2018-03-07 11:45:57 +01:00
nginx Split nginx configuration to several files 2018-01-31 23:04:51 +01:00
src Refactor callback subscription stuff to a mixin 2018-03-07 11:45:57 +01:00
supervisor Remove terminado from supervisor 2018-03-06 13:27:32 +01:00
.gitignore Implement frontend dependency management 2017-12-11 17:37:21 +01:00
.gitmodules Use SSH remote for submodule instead of HTTPS 2018-01-23 17:28:33 +01:00
.pyenvrc Rearrange project and dockerize 2017-11-27 21:09:56 +01:00
Dockerfile Enforce HISTFILE consistency 2018-03-07 11:34:21 +01:00
README.md Update readme 2018-01-10 16:56:03 +01:00
requirements.txt Implement proof of concept directory event monitoring 2018-02-12 16:01:24 +01:00
tfw_magic_start.sh Fix magic starter macOS compatibility 2018-03-06 13:26:41 +01:00

Tutorial Framework

Frontend

Place an index.html and related static files in src/frontend/dist, the web server will serve them properly.

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 8888:8888 <id> to bind the container's port to localhost.

Running locally

This will probably barf at the moment.

Create a new virtualenv, preferably with virtualenvwrapper. Install the dependencies with pip install tornado pyzmq transitions. If using virtualenvwrapper, issue add2virtualenv lib from the project root to add the local libraries to the virtualenv's PYTHONPATH.

To start the project issue

cd src/app/
python app.py

in one terminal, and

cd src/components/
python event_handler_main.py

in another. Prepend the python commands with PYTHONPATH="../../lib/" if the folder weren't added to the PYTHONPATH permanently.