- Install latest Node.js
- Install latest MongoDB
- Ensure Mongo is running:
$ mongo(Ctrl+C to quit) - Install grunt comand line app
$ sudo npm install -g grunt-cli - Add the following to
/etc/hosts:
# To allow development of OAuth stuff locally.
127.0.0.1 local.apinetwork.co
$ npm install$ grunt$ node server- Access
http://local.apinetwork.co:3000
- Start Hosted APIs app (see Run)
- Start watch command
$ grunt watch(required to be running continually during front end development) appfolder is compiled todist, which is also the web server root. Accessinghttp://local.apinetwork.co:3000reachesdist/index.html.- Install LiveReload Chrome extension to take advatage of automatic brower refreshing while editing .html and .less files (optional)
- Before committing any front end code, run
$ grunt jshintand solve Javascript syntax issues, then$ grunt jscsand solve any style issues.
IMPORTANT: dist and temp are transient folders and will be erased.