Skip to content

Commit

Permalink
Add node.js web server example
Browse files Browse the repository at this point in the history
  • Loading branch information
janjongboom committed Mar 26, 2012
1 parent 26aa153 commit 6fced80
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/ext/newresource/newresource.xml
Expand Up @@ -121,6 +121,13 @@ app.configure('production', function(){
});
// *******************************************************
]]></item>
<item value="js" icon="page_white_code.png" caption="Node.js web server"><![CDATA[var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World from Cloud9\n');
}).listen(process.env.PORT);
]]>
</item>
</templates>
</a:model>
</a:application>

0 comments on commit 6fced80

Please sign in to comment.