title: How to run server written in js with Node.js
body: <p>I have installed node.js from here <a href="http://nodejs.org/" rel="noreferrer">http://nodejs.org/</a>  . in my windows8 machine. copied the example server code in my server.js file </p>
  
  <pre><code>var http = require('http');
  http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Type': 'text/plain'});
    res.end('Hello World\n');
  }).listen(1337, '127.0.0.1');
  console.log('Server running at http://127.0.0.1:1337/');
  </code></pre>
  
  <p>then opened the node.js prompt and written node c:/node/server.js 
  but nothing happens. 
  I am a php developer just trying hands on it, any guidelines will really be helpful. </p>