@jnext/jnext-auth

1.0.27 • Public • Published

Jnext-Auth

Installation

$ npm i @jnext/jnext-auth # This will install 

Documentation

let conf=require('./config/config')
const app =require('@jnext/jnext-autho').init(conf);
const db =require('@jnext/jnext-autho').db

Setup DB : 
create models folder

config file : 

const path=require('path');
var  modelDir= path.resolve('./models');
console.log('path',modelDir)
module.exports={"db":{
  "development": {
    "username": "root",
    "password": "test",
    "database": "test",
    "host": "localhost",
    "dialect": "mysql"
  },
  "staging": {
    "username": "********",
    "password": "********",
    "database": "********",
    "host": "127.0.0.1",
    "dialect": "mysql"
  },
  "test": {
    "username": "********",
    "password": "********",
    "database": "********",
    "host": "127.0.0.1",
    "dialect": "mysql"
  },
  "production": {
    "username": "********",
    "password": "********",,
    "database": "********",
    "host": "127.0.0.1",
    "dialect": "mysql"
  }
},

"modelDir": modelDir
}

 

/@jnext/jnext-auth/

    Package Sidebar

    Install

    npm i @jnext/jnext-auth

    Weekly Downloads

    28

    Version

    1.0.27

    License

    ISC

    Unpacked Size

    55.5 kB

    Total Files

    29

    Last publish

    Collaborators

    • jnext