Skip to content

Commit

Permalink
Add a small node server
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuck committed Apr 14, 2012
1 parent 1e9ee1e commit 3f3f900
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
File renamed without changes
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions server.js
@@ -0,0 +1,10 @@
var express = require('express'),
app = express.createServer();

app.use(express.static(__dirname + '/public'));

app.listen(8888, '127.0.0.1', function() {
var addy = app.address();
console.log('Server started on http://' + addy.address + ':' + addy.port);
console.log('Press Ctrl+C to stop');
});

0 comments on commit 3f3f900

Please sign in to comment.