- React
- Webpack
- Typescript
- Tachyons
- Backend: Sanic and jinja2
- Install docker: https://docs.docker.com/install/
- Install docker-compose: https://docs.docker.com/compose/install/
- Install Node 10: https://github.com/nvm-sh/nvm
- Install yarn: https://yarnpkg.com/en/docs/install
In one terminal, run make serve
to start the python server.
In another terminal, run yarn run watch
to start the bundler.
Run yarn test
to lint your code, and yarn run fix
to auto-format your code.
Run make reset
to do a hard reset of your docker build, deleting containers and volumes.
There are a few dockerfiles:
Dockerfile
- production imagedev/Dockerfile-python
- development python imagedev/Dockerfile-node
- development js/css watcherdocker-compose.yaml
- development docker-compose config
To build locally, first increment the semantic version in scripts/local-build.sh
and then run that script.
These environment variables can be set:
URL_PREFIX
- path prefix for all links and asset urls (css, js, images) that get generated in the app. Used when behind an nginx proxy.