mirror of
https://github.com/janishutz/libreevent.git
synced 2026-03-14 07:00:05 +01:00
add more mysql stuff
This commit is contained in:
@@ -18,9 +18,14 @@ const fs = require( 'fs' );
|
||||
const mail = require( './backend/mail/mailSender.js' );
|
||||
const mailManager = new mail();
|
||||
|
||||
const dbh = require( './backend/db/mysqldb.js' );
|
||||
const db = new dbh();
|
||||
|
||||
db.connect();
|
||||
|
||||
// const env = process.env.PROD || false;
|
||||
|
||||
const settings = JSON.parse( fs.readFileSync( path.join( __dirname + '/config.json' ) ) );
|
||||
const settings = JSON.parse( fs.readFileSync( path.join( __dirname + '/config/settings.config.json' ) ) );
|
||||
|
||||
// initialise express with middlewares
|
||||
// TODO: Generate random token
|
||||
|
||||
Reference in New Issue
Block a user