From bda7e6fab02d989a16504f4c7a9f8a01d011954f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20Bokros?= Date: Mon, 27 Nov 2017 20:58:34 +0100 Subject: [PATCH] Add readme --- README.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..05bb328 --- /dev/null +++ b/README.md @@ -0,0 +1,36 @@ +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: + +* [jQuery](https://jquery.com/download/) +* [Bootstrap](https://getbootstrap.com/docs/4.0/getting-started/download/) +* [Popper.js](https://github.com/FezVrasta/popper.js#installation) +* [Highlight.js](https://highlightjs.org/download/) +* [Showdown](https://github.com/showdownjs/showdown/releases) + +## 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 ` 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 component_example.py +``` +in the other.