mongoose-connectx

1.0.4 • Public • Published

mongoose-connection

Module responsible with mongodb connection. Options took from env settings

Installation

$ npm install mongoose-connectx

Usage

  • Load the module
  • Pass configuration options(mongoose,bluebird)

Example

/* index.js */
    //init express
 
    //Mongodb Connect
    const mongooseConnection = require('mongoose-connectx')(mongoose,bluebird);
    mongooseConnection.connect();
    //endregion
 
    //init routes
 
    //init express server

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i mongoose-connectx

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

4.88 kB

Total Files

4

Last publish

Collaborators

  • vladpantea