The current build can be found at https://st-team5.github.io/LiveBetterClient/. Its raw contents are automatically added in the gh-pages
branch (see below).
- Checkout this repository and make sure that your local copy has write (push) permission. In case it doesn't, you'll have to set the appropriate remote.
- Install Node.js, if necessary.
- Open a terminal.
- Install yeoman globally:
npm install -g yo
- Install grunt globally:
npm install -g grunt grunt-cli
cd
to the directory of this project- Run
npm install
in the directory of this project to install all dependencies. - Run
bower install
Run grunt serve
in a terminal
Now open http://localhost:9000/ (if it isn't already done automatically for you). Grunt will watch for changes, so you just need to save your files and the server (and probably even the browser!) will automatically reload, showing your changes immediately.
You may use the different goodies provided by the Yeoman Angular generator. For example, yo angular:route foo
to add a route+view+controller named foo.
- Commit and push your changes.
- Verify that everything is OK and build the project with
grunt
. - Run
grunt buildcontrol:pages
. It will automatically push the changes to GitHub pages. - Open https://st-team5.github.io/LiveBetterClient/ to verify that everything is OK there as well.
Just run grunt
with no arguments. After a few seconds, the build output will be in dist/
, if everything is OK.
Run grunt test
. The tests will run on PhantomJS using Karma.