Skip to content

Latest commit

 

History

History
54 lines (30 loc) · 1.24 KB

README.md

File metadata and controls

54 lines (30 loc) · 1.24 KB

EW Dashboards UI

Elm front end for the energizedwork/ew-dashboards app.

Local setup

Assuming you have a Node install.

$ npm install

(Leave off the --debug in package.json if you don't want the time-traveling debugger.)

Develop / Test

elm-live has you covered for auto compilation of Elm src & live reload of changes. It's wrapped via NPM to allow easy install and to allow tests to run concurrently:

# run the dev server + local CI
$ npm run start:test:watch

# run the tests only & rerun on file changes
$ npm run test:watch

# run the tests
$ npm run test

Formatting

Elm is whitespace sensitive so elm-live uses elm-format for consistency. Please follow this convention.

Deploy

Deploys are automatic on pushes to master and a green CI run on Heroku so just push to Github or merge a PR.

$ git push origin master

$ open http://dashboards.energizedwork.com/

If you need to do a manual deploy:

$ git remote add heroku https://git.heroku.com/ew-dashboards-ui.git
$ git push heroku master

$ open http://dashboards.energizedwork.com/