Added the config module to handle app configuration loading; adding data/ folder for local sqlite storage

This commit is contained in:
2022-11-02 14:03:20 -04:00
parent aa980948d8
commit 182356c685
5 changed files with 49 additions and 1 deletions

View File

@ -1,5 +1,10 @@
const dbConfig = require('config').get('database');
const Sequelize = require("sequelize");
const sequelize = new Sequelize('sqlite::memory:');
const sequelize = new Sequelize({
dialect: dbConfig.get('driver'),
storage: dbConfig.get('connection_string')
});
const db = {};