@mtsmachado8/repository
v0.0.2
Published
A default repository for dealing with all mtsmachado8's databses
Downloads
2
Readme
Repository
Módulo usado para conectar o mongoose ao projeto de forma simples.
Environment Variables
DATABASE_USER || ''
DATABASE_PASS || ''
DATABASE_HOST || '127.0.0.1'
DATABASE_PORT || '27017'
DATABASE_NAME || 'database'
DATABASE_SRV || false
Usage
import repository from '@mtsmachado8/repository'
repository.start()
.then(() => {
log.info('Connected to db')
})
.catch(e => {
log.info(`Error connecting to db: ${e}`)
})