Boilerplates, base config, folder structure, utils, etc.

This commit is contained in:
2022-10-07 14:25:50 +05:30
parent dbcb4afce0
commit 76b6f05e92
11 changed files with 236 additions and 1 deletions

16
config/config.js Normal file
View File

@@ -0,0 +1,16 @@
module.exports = {
"development": {
"username": process.env.DB_USERNAME, // local PostgreSQL DB username
"password": process.env.DB_PASSWORD, // local PostgreSQL DB password
"host": "127.0.0.1", // localhost
"database": process.env.DB_NAME, // local PostgreSQL DB name
"dialect": "postgres"
},
"production": {
"use_env_variable": "DB_URL", // production database connection string
"dialect": "postgres",
"dialectOptions": {
"ssl": true,
},
}
}