X-Git-Url: http://rtime.felk.cvut.cz/gitweb/coffee/main.git/blobdiff_plain/6d06d59ef01b284de8b31d30e30a96a957cf5615..76042f657ce9734109236d08df32ff69ee63815d:/README.md diff --git a/README.md b/README.md index 0719f11..c79059b 100644 --- a/README.md +++ b/README.md @@ -23,3 +23,23 @@ access to the database. For example, the whole database can be dumped with this command: sqlite3 /home/coffee/coffee-flask/coffee.db .dump + +## Hacking on the code + +To improve the terminal, you can run all the relevant code on your +Linux computer. + +First install all prerequisities: + + apt install python3-flask libev-dev cmake + pip3 install flask_cors + +Then compile and run all the software components: + +1. Compile _mtaio_ simulator: `make -C terminal/src/mt-apps SIM=1` +2. Run mtaio: `cd terminal/src/mt-apps && ./build/mtaio` +3. Run the server application: `cd coffee-flask && FLASK_APP=app flask run` +4. Point your web browser to http://localhost:8080/ +5. Pressing keys in _mtaio_ window simulates various activities. + Numbers are cards of different users, letters A through F are + different coffee machine buttons.