npm install -g bower grunt-cli
if running on MacOS/Linux the command should be run with sudo
Make sure all the client and npm dependencies installed by running the following commands:
npm install
bower install
You are then presented with 3 options ngnix
, test
, build
grunt serve --env=mock
will setup a dev(nginx) server under http://localhost:9000
with mock configurations. The are also grunt serve:test
and grunt serve:prod
optionsgrunt test
will run all the unit tests in the projectgrunt build
will run a build process resulting with a dist/
folder including the version ready to be deployed (this task should be mainly run on the CI server)grunt build:dev
will deploy to nginx a production artifact, (minify files)Although any text editor can be used to write angular applications Webstorm is the most convenient for the task. In case Webstorm is chosen make sure it has the following plugins:
.editorconfig
- this plugin will keep line indentation same across all developersangular.js
- this plugin will help autocompleting angular syntaxmarkdown
- this one will give nice support to write .md files such as this one you are reading right nowThese can be found in plugins settings section by pressing PC: CTRL + SHIFT + A
MAC: CMD + SHIFT + A
and typing addons
--> DO NOT COMMIT ANYTHING BEFORE RUNNING grunt build / grunt nginx / grunt nginx:mock --env=mock <--