Compare commits

..

No commits in common. "12770a995db3f9677fa55d9fc24bd73191ee81f6" and "aa980948d884fb63154b692c977f8bda2129a2ac" have entirely different histories.

6 changed files with 1 additions and 52 deletions

3
.gitignore vendored
View File

@ -5,6 +5,3 @@ node_modules/
public/css/
public/js/
# Local data storage
data/

View File

@ -1,6 +0,0 @@
{
"database": {
"driver": "sqlite",
"connection_string": "data/overseer.db"
}
}

View File

36
package-lock.json generated
View File

@ -9,7 +9,6 @@
"version": "0.1.0",
"license": "BSD-2-Clause",
"dependencies": {
"config": "^3.3.8",
"express": "^4.18.2",
"sequelize": "^6.25.3",
"sqlite3": "^5.1.2",
@ -1042,17 +1041,6 @@
"typedarray": "^0.0.6"
}
},
"node_modules/config": {
"version": "3.3.8",
"resolved": "https://registry.npmjs.org/config/-/config-3.3.8.tgz",
"integrity": "sha512-rFzF6VESOdp7wAXFlB9IOZI4ouL05g3A03v2eRcTHj2JBQaTNJ40zhAUl5wRbWHqLZ+uqp/7OE0BWWtAVgrong==",
"dependencies": {
"json5": "^2.2.1"
},
"engines": {
"node": ">= 10.0.0"
}
},
"node_modules/console-control-strings": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
@ -2757,17 +2745,6 @@
"integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
"dev": true
},
"node_modules/json5": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz",
"integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==",
"bin": {
"json5": "lib/cli.js"
},
"engines": {
"node": ">=6"
}
},
"node_modules/just-debounce": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/just-debounce/-/just-debounce-1.1.0.tgz",
@ -7045,14 +7022,6 @@
"typedarray": "^0.0.6"
}
},
"config": {
"version": "3.3.8",
"resolved": "https://registry.npmjs.org/config/-/config-3.3.8.tgz",
"integrity": "sha512-rFzF6VESOdp7wAXFlB9IOZI4ouL05g3A03v2eRcTHj2JBQaTNJ40zhAUl5wRbWHqLZ+uqp/7OE0BWWtAVgrong==",
"requires": {
"json5": "^2.2.1"
}
},
"console-control-strings": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
@ -8420,11 +8389,6 @@
"integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
"dev": true
},
"json5": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz",
"integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA=="
},
"just-debounce": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/just-debounce/-/just-debounce-1.1.0.tgz",

View File

@ -24,7 +24,6 @@
"sass": "^1.55.0"
},
"dependencies": {
"config": "^3.3.8",
"express": "^4.18.2",
"sequelize": "^6.25.3",
"sqlite3": "^5.1.2",

View File

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