baseimage-tutorial-framework/README.md

22 lines
811 B
Markdown
Raw Normal View History

2017-11-27 19:58:34 +00:00
Tutorial Framework
==================
2018-03-09 10:14:00 +00:00
## Building and running with magic starter
2017-11-27 19:58:34 +00:00
2018-03-09 10:14:00 +00:00
Execute the `tfw_magic_start.sh` script and it will automagically run a backend instance in Docker and serve the Angular frontend locally.
2017-11-27 19:58:34 +00:00
2018-03-09 10:14:00 +00:00
This requires the `tutorial-framework-wip` and `tutorial-framework-ng` repositories to have a common parent folder.
2017-11-27 19:58:34 +00:00
2018-03-09 10:14:00 +00:00
## Building and running with Docker
2017-11-27 19:58:34 +00:00
2018-03-09 10:14:00 +00:00
Simply issue `docker build -t tfw .` in the project root. The first build could take a while as it's compiling a fresh
Python package from source.
2017-11-27 19:58:34 +00:00
2018-03-09 10:14:00 +00:00
Run with `docker run --rm -p 8888:8888 -e AVATAO_SECRET=secret tfw`.
2017-11-27 19:58:34 +00:00
2018-03-09 10:14:00 +00:00
Running locally is possible with lots of pain involved, so this is no longer officially supported.
2018-01-10 15:56:03 +00:00
2018-03-09 10:14:00 +00:00
## Frontend
2017-11-27 19:58:34 +00:00
2018-03-09 10:14:00 +00:00
Place an `index.html` and related static files in `src/frontend/dist`, the web server will serve them.