1.0.4 • Published 5 years ago

mongoose-connectx v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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