mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 14:11:31 +00:00
Update readme
This commit is contained in:
parent
a4d101883e
commit
c26d3da98d
@ -1,20 +1,21 @@
|
||||
Tutorial Framework
|
||||
==================
|
||||
|
||||
## Frontend dependencies
|
||||
## Frontend
|
||||
|
||||
Open up a terminal in `src/app/static`. Issue `yarn install` to install dependencies and `webpack` to compile the
|
||||
frontend source.
|
||||
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 4242:4242 <id>` to bind the container's port to localhost.
|
||||
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](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.
|
||||
|
Loading…
Reference in New Issue
Block a user