Skip to content

Instantly share code, notes, and snippets.

@cupnoodle
Last active August 29, 2015 14:22
Show Gist options
  • Save cupnoodle/3d4aa5ffbc9bd7f2527b to your computer and use it in GitHub Desktop.
Save cupnoodle/3d4aa5ffbc9bd7f2527b to your computer and use it in GitHub Desktop.
Node main app
var express = require('express');
var app = express();
app.set('port', (process.env.PORT || 5000));
app.listen(app.get('port'), function() {
console.log("Node app is running on port:" + app.get('port'))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment