Node.js tutorials : Creating application with Node jS

There are several reasons to gaining popularities of node.js . If you are planning to create  application using node.js then first you will need to setup development environment .

Installing Node JS

Follow below steps to setup node.js development environment :

Step 1: Goto and click on install

Step 2: Download and install

Creating hello word with node.js

Step 1: Create a folder named “helloword” anywhere on your file system.

Step 2: In the “helloword” folder, create a file named server.js.

Step 3: Write below code in server.js :

var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');
}).listen(3000, '');
console.log('Server running at');

Step 4:  To start the server, open a shell, cd to your helloword directory, and start your server as follows:

node server.js

If you are using windows then open node.js command prompt (Start menu->All programs->node.js->node.js command prompt) and run here above command.


Step 5: To test the application, open a browser and access http://localhost:3000


1 Comment

Leave us a comment

  • restaurants near me oswego il

    My name is Robert. I live in Lorup, Germany.I randomly stumble on
    I just want to say that I liked your blog post about “Node.js tutorials : Creating application with Node jS”.

Leave a Comment

* Copy This Password *

* Type Or Paste Password Here *