Developing & Deploying Node.js Web application into Windows Azure with Cloud9 IDE

While it’s common to run Node.js applications  & deploy them into Windows Azure. Lets start by building a simple Demo of building a Node.js app in Cloud9 IDE & deploy it into Windows Azure. Node.js is an open – source toolkit for developing Windows Azure based apps. Cloud9 is a browser based cross-platform development environment supports for Node.js projects which can be directly deployed to Windows Azure.

  • Cloud9 IDE is an ideal browser tool for Chrome -OS & works in OS X , Linux & Windows.
  • To use Cloud9 IDE, you need to Sign up to Cloud9 portal @
  • Alternatively you can Sign in using Github Id.
  • So, lets first create a Cloud9 Project , click on the icon ‘Create a new project’ .

  • Select the name of your cloud project  & click on Create to create the project.
  • Start Editor after the project is being created. You would be prompted for dashboard preview but is you need to code directly click on Just the editor, please.
  • Start coding by selecting New File from the menu. Paste the following code in the file.

var http = require(‘http’);

var port = process.env.PORT;



res.writeHead(200, {‘Content-Type’: ‘text/plain’});

res.end(‘hello windows azure\n’); }).listen(port);

  • Next save the file as ‘server.js’ from the Save As menu.

  • Start debugging & preview the output in browser as app.

  • Now, deploy the app by clicking on Deploy button from the button grid options & select Windows Azure as deployment platform.
  • Next, you will be prompted to Windows Azure portal  & start migrting your on-premise node.js web app in Cloud9 IDE app into Windows Azure.



%d bloggers like this: