title: Running node.js on web matrix and IIS
body: <p>I am trying to teach myself node.js.</p>
  
  <p>I have installed node and it works from the command line.</p>
  
  <p>I am now trying to use web matrix 3 as the IDE for node.</p>
  
  <p>I have been doing the following steps</p>
  
  <ol>
  <li>Creating a new site using the template gallery.</li>
  <li>I choose empty node.js website.</li>
  <li>I create a js file and write some code</li>
  <li>I run it on chrome or firefox.</li>
  </ol>
  
  <p>When I create a new project, a file, server.js is automatically created with the following code:</p>
  
  <pre><code>    var http = require('http');
      http.createServer(function (req, res) {
          res.writeHead(200, { 'Content-Type': 'text/html' });
          res.end('Hello, world!');
      }).listen(process.env.PORT || 8080);
  </code></pre>
  
  <p>Whenever I try running a file, I get an url like "<a href="http://localhost:39540/" rel="nofollow noreferrer">http://localhost:39540/</a>" on the browser and server.js is executed.</p>
  
  <p>I can understand the above code and if I delete server.js, I get an error.</p>
  
  <p>Whatever file I try to run, server.js gets executed.</p>
  
  <p>even if I try a simple console.log,, server.js gets executed.</p>
  
  <p>Probably I have to change something in the config.web file?</p>
  
  <p>How can I run my files using web matrix and IIS instead of server.js? (Like I can run on cloud 9 IDE)</p>
  
  <p>I apologize in advance if this question sounds stupid or this is not the correct forum.</p>