openshift-express

0.0.1 • Public • Published

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.

Build Status

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.

Package Sidebar

Install

npm i openshift-express

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • magdev