To bundle the application (output to /dist)
yarn build
To run in development
yarn webpack-dev-server
This contains config to deploy to dokku. Couple of things to note.
- you will need dokku setup , along with the nginx plugin :-)
- The static site outputs to /dist . To tell dokku about this:
dokku config:set <dokku_app_name> NGINX_ROOT=dist
TODO:
- dokku builds the app twice
- More efficiently create multiple objects
- Write tests
- Physics engine
- App can run in docker container, either from command line
docker build .
...or inside vscode (open this folder in container)
- Run in development mode
yarn run webpack-dev-server