helloworld

The title says it all. Key points are:

visit the node.js endpoint at hello.js
debug node.js endpoint at hello.js/debug (requires WebKit enabled browser)
get a client side JavaScript file from helloClient.js

code

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);  

web.config

<configuration>
  <system.webServer>

    <!-- indicates that the hello.js file is a node.js application 
    to be handled by the iisnode module -->

    <handlers>
      <add name="iisnode" path="hello.js" verb="*" modules="iisnode" />
    </handlers>
    
  </system.webServer>
</configuration>