Quick Start Node.JS

Programming, error messages and sample code > Node.js
We are Hosting node.js applications in IIS on Windows via IISNode, so you need to update listening port to use "process.env.PORT" in your code.
HelloWorld Sample:
var http = require('http');
http.createServer(function(req, res) {
    res.writeHead(200, {
        'Content-Type': 'text/plain'
    res.end('Hello, world!');
<?xml version="1.0" encoding="UTF-8" ?>
            <add name="iisnode" path="hello.js" verb="*" modules="iisnode" />
                <rule name="mysite">
                    <match url="/*" />
                    <action type="Rewrite" url="hello.js" />
You do not have to run any command line with npm or node.exe to host nodejs with us.
Note: Node Modules have to be uploaded to node_modules. You can install node modules locally via npm commands.