@hdntecnologiabr/repository
v0.0.3-alpha.0
Published
A default repository for dealing with all hdntecnologiabr's databses
Downloads
2
Readme
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}`)
})