Saturday, July 19, 2014

Create your own simple node.js server, in few steps!

  1. Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.


  • Download node.js (http://nodejs.org/)
  • Install it on your machine.
  • Create a file for example server.js
  • Write following code in it.


  • Save the file.
  • Go to command prompt and type following command 

  • You will get message "My Server Started".
  • Go to browser and type following URL 
  •  You will get message "Welcome to My Server!"