Installing Nodejs in Windows Operating System

nodejs-darkWhen I was analysing real-time data with PHP, MySQL and JavaScript. I came to know some basic stuff like ajax calls, but its not real because we need to set request based on interval.

For example I need to refresh the data, whenever new data is added or update in database. But ajax calls will refresh the data based on the interval.

After that I came to know its not proper way to go, because refresh data means whenever new data got inserted or updated it should be reflected.

So I switched over to Nodejs for real-time data stuff, before installing Nodejs.
We will have brief discuss about it.

What is Nodejs ?
Nodejs is a platform built on v8 Javascript Engine for easy building fast, scalable network applications. Its non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

Installing Nodejs in Windows OS
You need to download the Nodejs for your Windows System type.
http://nodejs.org/download/

Once you have downloaded and installed,
run the below command.

cd nodejs
cd nodejs
nodejs node command
nodejs node command

 

run simple program in nodejs
run simple program in nodejs

Once your program is executed properly, the output will be display “Welcome to Nodejs” If its not you need to re-install again.