nodular
v1.1.5
Published
A dependency injection autoloader inspired by Angular.
Downloads
16
Readme
nodular
A dependency injection autoloader inspired by Angular.
Installation
$ npm install nodular
Quick Start
See example below:
require('nodular')(require)(function(
error
, $express
, $expressResource
, config
, middlewares
) {
var app = module.exports = $express();
app.use($express.static('public'));
app.use(middlewares.passport());
app.use(middlewares.rest());
});
A simple project and example
- project_folder/
- config/
- redis.json
- mongo.json
- middlewares/
- rest/
- resources/
- users.js
- threads.js
- posts.js
- comments.js
- index.js
- resources/
- passport.js
- rest/
- node_modules/
- express/
- (All files)
- express-resources/
- (All files)
- passport/
- (All files)
- passport-local/
- (All files)
- express/
- app.js
- config/