0.2.2 • Published 10 years ago

express-bootloader v0.2.2

Weekly downloads
23
License
-
Repository
github
Last release
10 years ago

bootstrap-loader

.

bootstrap-loader is an node.js module used to boot an express application :

Set application properties and db connections ...

WARNING : v0.2.0 isn't comptabible with 0.1.*

The boot-loader module need to read one configuration files (json format) :

  • bootloader.json (general configuration)

Installation

You can install it with npm :

npm install express-bootloader --save

Or you can registrer it in the package.json of your express web application

example

By default create the configuration files in a directory named "/configs"

  • bootloader.json :
{
    "bootloader" :{
    	"db" : {
	        "mongodb" : {
	            "uri" : "mongodb://localhost/test"
	        }
	    },
		"settings" : {
			"port" : 3000,
			"views" : "views",
			"view engine" : "ejs"
		}
    }    
}
  • app.js :

// ...

var bootloader = require('express-bootloader');

var app = express();

bootloader.init(app,__dirname);

// uncomment after placing your favicon in /public
//app.use(favicon(__dirname + '/public/favicon.ico'));
app.use(logger('dev'));

// [...]
0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago