Update readme

This commit is contained in:
Bálint Bokros 2017-12-08 12:00:51 +01:00
parent d3db21f26e
commit c1f867f97c
1 changed files with 9 additions and 6 deletions

View File

@ -21,16 +21,19 @@ Run with `docker run -p 4242:4242 <id>` to bind the container's port to localhos
## Running locally
Open two terminals in the project root.
Create a new virtualenv, preferably with [virtualenvwrapper](https://virtualenvwrapper.readthedocs.io). 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.
Issue
To start the project issue
```
cd src/app/
PYTHONPATH="../../lib/" python app.py
python app.py
```
in one, and
in one terminal, and
```
cd src/components/
PYTHONPATH="../../lib/" python event_handler_main.py
python event_handler_main.py
```
in the other.
in another. Prepend the python commands with `PYTHONPATH="../../lib/"` if the folder weren't added to the PYTHONPATH
permanently.