Started to build out the app. Its got a basic set of features and it should really be in VC
This commit is contained in:
16
server/config/database.js
Normal file
16
server/config/database.js
Normal file
@@ -0,0 +1,16 @@
|
||||
//Import mysql2 package
|
||||
const mysql = require('mysql2');
|
||||
|
||||
// Create the connection pool.
|
||||
const pool = mysql.createPool({
|
||||
host: 'localhost',
|
||||
user: 'dev',
|
||||
password: "LazaLinga&33Can't!Do!That34",
|
||||
database: 'application',
|
||||
waitForConnections: true,
|
||||
connectionLimit: 20,
|
||||
queueLimit: 0
|
||||
});
|
||||
|
||||
//Export the pool for user elsewhere
|
||||
module.exports = pool
|
Reference in New Issue
Block a user