0.2.0 • Published 9 years ago

hapi-monk v0.2.0

Weekly downloads
1
License
-
Repository
github
Last release
9 years ago

hapi-monk Build Status

A Hapi plugin for monk

Overview

npm install --save hapi-monk

This plugin simply exposes all monk database methods. It also exposes the created database options property. The point is to share the same connection across all plugins in a Hapi application.

Options

optionrequireddefaultdescription
urlfalsemongodb://localhost:27017MongoDB connection string

Example manifest.json

{
	"pack" : {},

	"plugins" : {
		"hapi-monk" : {
			"url" : "$env.DATABASE_URL"
		}
	},

	"servers" : [
		{
			"host" : "$env.HOST",
			"port" : "$env.PORT"
		}
	]
}

License

MIT License

0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago