constants.js 331 Bytes
Newer Older
chaiwat's avatar
chaiwat committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
const dotenv = require('dotenv')

const { argv } = require('yargs')

dotenv.config({
  path: argv.env || '.env',
})


module.exports = {

  HOST: "localhost",
  USER: "root",
  PASSWORD: "",
  DB: "repaircenter_db",
  
  APP_NAME: process.env.APP_NAME,
  PORT: process.env.PORT || 3000,

  ERROR: {
    NO_AUTH_CODE: 401,
  }
  
}