Latest commit 2000247 Jul 4, 2012 @pofallon pofallon My experience is that express will now install on Windows via NPM so …
…the alternate installation instructions may no longer be necessary.


    <title>express sample</title>
            background-color: eeeeee;
        node.js apps that use the popular <a href="">express</a> framework
        can be hosted in IIS.</p>
        <li>Express framework can be installed on Windows using NPM.</li>
        <li>Remember that you may or may not own the entire URL space within an express application
            when designing your URL structure - see code below.</li>
        <li>The URL rewrite module is recommended for all but the most simple express applications
            hosted in IIS. The sample below shows how to use it, but also check out the <a href="../urlrewrite/readme.htm">
                urlrewrite sample</a>.</li>
    visit the foo endpoint at <a href="myapp/foo">myapp/foo</a><br />
    visit the bar endpoint at <a href="myapp/bar">myapp/bar</a><br />
    visit the nonexistent endpoint at <a href="myapp/idontexist">myapp/idontexist</a><br />
    debug the application at <a href="hello.js/debug" target="_blank">hello.js/debug</a> (requires WebKit enabled browser)<br />
    <pre>var express = require('express');

var app = express.createServer();

app.get('/node/express/myapp/foo', function (req, res) {
    res.send('Hello from foo! [express sample]');

app.get('/node/express/myapp/bar', function (req, res) {
    res.send('Hello from bar! [express sample]');


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

    &lt;!-- use URL rewriting to redirect the entire branch of the URL namespace
    to hello.js node.js application; for example, the following URLs will 
    all be handled by hello.js:

        &lt;rule name="myapp"&gt;
          &lt;match url="myapp/*" /&gt;
          &lt;action type="Rewrite" url="hello.js" /&gt;