@hdntecnologiabr/repository

0.0.3-alpha.0 • Public • Published

Repository

Módulo usado para conectar o mongoose ao projeto

Environment Variables

DATABASE_USER || ''
DATABASE_PASS || ''
DATABASE_HOST || '127.0.0.1'
DATABASE_PORT || '27017'
DATABASE_NAME || 'hdntecnologiabr'
DATABASE_SRV || false

Usage

import repository from '@hdntecnologiabr/repository'

repository.start()
  .then(() => {
    log.info('Connected to db')
  })
  .catch(e => {
    log.info(`Error connecting to db: ${e}`)
  })

Readme

Keywords

Package Sidebar

Install

npm i @hdntecnologiabr/repository

Weekly Downloads

0

Version

0.0.3-alpha.0

License

ISC

Unpacked Size

3.76 kB

Total Files

4

Last publish

Collaborators

  • hdntecnologiabr