Wednesday, 4 May 2016

Sending Notification Using Node.Js


Now days nodejs is popular technology  and its growing quickly .As you know Nodejs server can handle 10 thousand of concurrent requests. Basically . Nodejs is non-blocking and event based ,so the best example of nodejs is to developed chat application and also you can use it for Push notifications or desktop notification

Installation 

1. Download node.js  zip from http:://nodesj.org and install it on your linux machine


Once Nodejs installation done. create your project directory , navigate to your project directory and  create package.json file and add dependent module in it .Once package.json file creation done.

run  npm install

Above common will run all the dependent module which has mentioned in package.json file.

So your project directory will look like this

server /db.js
          /index.js

client /index.html [ your Front end file ]

Routes/index.js

node_modules/

Gruntfile.js

You can see Gruntfile.js . run  npm grunt-cli -g globally ,as GRUT is debugging and




No comments:

Post a Comment