Database Management Module
$ npm i db-avatar-init
'use strict'
const DBViewer = require('db-avatar-init')
const options = {
dbId: 000000,
viewName: 'xxxxx.sql',
user: 'xxxxx',
password: 'xxxx'
};
DBViewer.executeView(options, (error, data) => {
if(error) {
console.log(error.message)
} else {
console.log(data)
}
})
"scripts": {
"db-init": "db-init",
"mail-init": "init-credentials"
},
- Create api folder to root path
$ npm run db-init
- download gmail acount credentials
$ npm run mail-init
Do you want to create a credential structure path? yes || no > - type yes to init credentials
Please enter gmail credentials [in json format] ? - enter google credentials downloaded from google account
ownload the confirmation code of: https://...... - copy and paste the url in the browser
Ingrese Codigo: - paste the confirmation code from the url
- First list item
- First nested list item
- Second nested list item
- First nested list item
#process.env.NODE_API_DB_SETUP=OK