1.0.3 • Published 5 years ago

mongodb-delpinos v1.0.3

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
5 years ago

mongodb delpino.

Database config for express server.

Dependencies

Install

$ npm i --save mongodb-delpinos

Usage

Create a database for each url and export it.

const { database } = require('mongodb-delpinos');

const db = database(DB_URL);

module.exports = {
  db,
};

Import the database with your models to use it.

module.exports = db.model('Example', ExampleSchema);

** Recomendation: include the code above in /tools/mongoDb/index.js

1.0.3

5 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago