Skip to content

Commit

Permalink
Initial commit of template
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyhaines committed May 14, 2010
1 parent 87352fa commit c48fd58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
exports.requestHandler = function(req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello, World!\n');
}
6 changes: 6 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
var http = require('http'),
port = process.env.PORT || 8001,
app = require('./lib/app');

http.createServer(app.requestHandler).listen(parseInt(port));

0 comments on commit c48fd58

Please sign in to comment.