mirror of
https://github.com/janishutz/libreevent.git
synced 2026-09-22 13:15:25 +02:00
add more mysql stuff
This commit is contained in:
1 parent
865141d945
commit
fbedf9e95e
13 files changed
+105
-65
No files matched your search
+6
-1
@@ -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