Skip to content

Commit

Permalink
add node logo and express static
Browse files Browse the repository at this point in the history
  • Loading branch information
zeke committed Apr 18, 2014
1 parent 10f66c5 commit c86a9b8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
12 changes: 7 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
var express = require('express');
var express = require('express')
var app = express();

app.set('port', (process.env.PORT || 5000))
app.use(express.static(__dirname + '/public'))

app.get('/', function(request, response) {
response.send('Hello World!');
});
response.send('Hello World!')
})

app.listen(app.get('port'), function() {
console.log("Node app is running at localhost:" + app.get('port'));
});
console.log("Node app is running at localhost:" + app.get('port'))
})
17 changes: 17 additions & 0 deletions public/node.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c86a9b8

Please sign in to comment.