Initial commit

TODO: change api.conf URL references to use environment variables and add these variables to the docker-compose configuration for host domain
This commit is contained in:
2023-03-28 00:08:50 -07:00
parent 2d6d44b89f
commit 9f2473801c
82 changed files with 13974 additions and 1 deletions

19
api/db/config.js Normal file
View File

@@ -0,0 +1,19 @@
// dotenv
// .config()
module.exports = {
HOST: process.env.DB_HOST,
PORT: process.env.DB_PORT,
// USER: process.env.DB_USER,
USER: 'root',
// PASSWORD: process.env.DB_PASSWORD,
PASSWORD: process.env.DB_ROOT_PASSWORD,
DATABASE: process.env.DB_DATABASE,
dialect: "mysql",
pool: {
max: 5,
min: 0,
acquire: 30000,
idle: 10000
}
};