Node.js is good for building applications which require high input / output such as real time chat apps, video streaming sites etc.
Best part about Node.js is plug and play approach towards web development, where a huge liberary of ready made modules are available to use.
Node.js is asynchronous and event drive. Basically that means it is non blocking in nature. So if a client requests some data from Node.js server, it wouldn't wait for that call to be completed, instead it will move on to the next call.
Node.js is very fast when it comes to code execution.
Node.js is used by large scale production grade applications.
You can download Node for your system from here : Download
To test if Node is installed, lets create our first app.
Create a file called main.js.
In main.js add :
Now in the terminal type :
Congrats you have just written your first node app.
Now lets move on.
In your main.js add following code :
Then in the terminal type :
When you go to http://127.0.0.1:8081/, you will see our 'hello world message'
Now lets install Express. Express is a simple web framework for Node.js
You can install node by doing :
npm install express --save
Now in your main.js
Then when you will open port :3000 in browser, you will see something like :
Thats the basic of Node and express.