Skip to content

Alex2018-avatar/db-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Avatar Logo

db-viewer

Database Management Module

Installation

$ npm i db-avatar-init

Usage

'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)
  }
})

add in your package.json scripts

"scripts": {
  "db-init": "db-init",
  "mail-init": "init-credentials"
},

execute

  • Create api folder to root path
$ npm run db-init

Init gmail configurations

  • 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

License

MIT

Collaborators

  1. First list item
    • First nested list item
      • Second nested list item

#process.env.NODE_API_DB_SETUP=OK

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published