created API For Aplication Absensi
This commit is contained in:
13
app/config/db.config.js
Normal file
13
app/config/db.config.js
Normal file
@@ -0,0 +1,13 @@
|
||||
require('dotenv').config();
|
||||
const { Sequelize } = require('sequelize');
|
||||
|
||||
const config = {
|
||||
username: process.env.DB_USERNAME,
|
||||
password: process.env.DB_PASSWORD,
|
||||
database: process.env.DB_DATABASE,
|
||||
host: process.env.DB_HOST,
|
||||
port : process.env.DB_PORT,
|
||||
dialect: process.env.DB_CONNECTION || 'mysql'
|
||||
};
|
||||
|
||||
module.exports = config;
|
||||
Reference in New Issue
Block a user