Skip to content

Instantly share code, notes, and snippets.

@geNAZt
Created January 19, 2013 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geNAZt/4575869 to your computer and use it in GitHub Desktop.
Save geNAZt/4575869 to your computer and use it in GitHub Desktop.
//start.js
require('fs').readdirSync('./config').forEach(function (file) {
require('./config/' + file);
});
//config/http.js
var container = require('http').createServer();
container.listen();
//config/express.js
var express = require('express'),
app = express();
//Access container from http.js to bind express to it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment