Skip to content

Instantly share code, notes, and snippets.

@ramontristani
Last active August 29, 2015 13:56
Show Gist options
  • Save ramontristani/9203535 to your computer and use it in GitHub Desktop.
Save ramontristani/9203535 to your computer and use it in GitHub Desktop.
Basic Node.js app.js
var express = require('express'),
path = require('path'),
app = express();
require('./server/config/app-config')(express, path, app);
require('./server/routes')(app);
app.listen(process.env.port, function() {
console.log('Now listenting to requests');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment