Skip to content

Instantly share code, notes, and snippets.

@telagraphic
Created February 25, 2014 04:56
Show Gist options
  • Save telagraphic/9202961 to your computer and use it in GitHub Desktop.
Save telagraphic/9202961 to your computer and use it in GitHub Desktop.
// 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