Заголовок

https://github.com/Tug/express-autoload

var autoloadApp = require('express-autoload') , config = require('./config'); autoloadApp(config, function(err, app) { if(err) { console.log(err.stack || err); return; } app.server.listen(config.port, config.hostname, function() { console.log('Server started on port %s in %s mode', app.server.address().port, app.express.settings.env); }); });