If you have already got node
& npm
installed locally, goto step 2.
-
Install
npm
along withNode.js
brew update brew install node
-
Install
Bower
globallynpm install -g bower
-
Install
Gulp
globallynpm install -g gulp
-
Install
npm
packages this project depends onnpm install
-
Install
bower
packages this project depends onbower install
-
To run tests, execute the following command in terminal
gulp test
-
To run JSHint, execute the following command in terminal
gulp js
-
To run both JSHint and tests, execute the following command in terminal
gulp
-
Run HTTP server locally
./server.sh
open browser, go to http://localhost:9999
-
Get all locations
http://location-backend-service.herokuapp.com/locations
-
Filter locations by name
http://location-backend-service.herokuapp.com/locations?name=Melbourne
name
is case insensitive, and could be partial.http://location-backend-service.herokuapp.com/locations?name=mel