Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


    <title>helloworld sample</title>
            background-color: eeeeee;
        The title says it all. Key points are:</p>
        <li>An IIS handler for node.js must be registered in web.config to designate the hello.js
            file as a node.js application. This allows other *.js files in this web application
            to be served by IIS as static client side JavaScript files.</li>
        <li>The node.js listen address must be specified as 'process.env.PORT' when starting
            the listener. When an application is hosted in IIS, the web server controls the
            base address of the application, which is provided to the node process via an environment
            variable. </li>
        <li>node.js applications can exist side by side with other content types: HTML files,
            client side JavaScript files, ASP.NET, PHP, WCF, ...</li>
    visit the node.js endpoint at <a href="hello.js">hello.js</a><br />
    debug node.js endpoint at <a href="hello.js/debug" target="_blank">hello.js/debug</a> (requires WebKit enabled browser)<br />
    get a client side JavaScript file from <a href="helloClient.js">helloClient.js</a>
    <pre>var http = require('http');

http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Type': 'text/html'});
        res.end('Hello, world! [helloworld sample; iisnode version is ' 
          + process.env.IISNODE_VERSION + ', node version is ' + process.version + ']');
}).listen(process.env.PORT);  </pre>

    &lt;!-- indicates that the hello.js file is a node.js application 
    to be handled by the iisnode module --&gt;

      &lt;add name="iisnode" path="hello.js" verb="*" modules="iisnode" /&gt;