To set up on your own computer, you will need git, elm-0.18, node.js, yarnpkg.
Also web browser with support of Object.assign for loading env.js. There is also polyfill.
Simply clone the repository and:
$ git clone https://github.com/rofrol/elm-navigation-example.git
$ cd elm-navigation-example
$ yarn
$ cp .env.example .env
$ ./tools/build-dev.sh
$ ./tools/server.jsIn another terminal run:
$ ./tools/browsersync.jsThen navigate your browser to http://localhost:8000.
Based on https://12factor.net/config
cp .env.example .env
./tools/generate-env.jsYou will get dist/js/env.js which is loaded to elm through flags.
https://gist.github.com/rofrol/98e8a788b3866493f53ad25f38563675