Posts

Showing posts from August, 2016

REST API using Node/Express/MongoDB

REST API How to initalize node app, - npm init - Will create basic setup including package.json - npm install express --save - Installing main tool express js. What --save means, it will update the package.json file for dependancy - npm install --save mongoose node-restful body-parser - General extra modules that need for REST which doesn't come up with express Task monitoring system (using gulp): Node change monitoring tool. Once do a change on the file system, app will restart automatically. - npm install -g gulp - npm install --save gulp - npm install --save-dev gulp-nodemon Note:     - npm global installations will keep in '/usr/local/lib/node_modules' in Mac. Refer Github for codes:  https://github.com/dilumdarshana/nodeREST