Content API + Static Generator prototype
- Install compiler requirements:
pip install -r requirements.txt
- Create a
.env
file withCONTENT_API_TOKEN
andCONTENT_API_ROOT
settings- Optionally, add
DEBUG=True
to.env
to generate placeholder text.
- Optionally, add
- Serve the editor:
cd editor && python -m SimpleHTTPServer
- Set the token:
localStorage['editorial:CONTENT_API_TOKEN'] = '<token>'
- Add content
- Modify the layout in
viewer/index.html
- Compile:
python compile.py