openshift-express
v0.0.1
Published
Initialize your express application for OpenShift with a single function call
Downloads
2
Readme
openshift-express
Initialize your express application for OpenShift with a single function call. Setup ipaddr, hostname and port for the underlying OpenShinft instance. Optionally loads one or more databsse DSN into the app object.
Getting Started
Install the module with: npm install openshift-express
var express = require('express'),
openshift = require('openshift-express'),
app = express();
openshift(app, {databases: [
{ type: 'mongodb' }
]});
console.log(app.get('mongodb dsn')); // mongodb://localhost:27017/database
Documentation
(Coming soon)
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add tests for any new or changed functionality. Lint and test your code using Grunt.
License
Copyright (c) 2014 Marco Grätsch
Licensed under the MIT license.