Created
February 25, 2014 04:56
-
-
Save telagraphic/9202961 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// web.js | |
var express = require("express"); | |
var logfmt = require("logfmt"); | |
var app = express(); | |
app.use(logfmt.requestLogger()); | |
app.get('/', function(req, res) { | |
res.send('Hello World!'); | |
}); | |
var port = Number(process.env.PORT || 5000); | |
app.listen(port, function() { | |
console.log("Listening on " + port); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment