Compare commits
No commits in common. "12770a995db3f9677fa55d9fc24bd73191ee81f6" and "aa980948d884fb63154b692c977f8bda2129a2ac" have entirely different histories.
12770a995d
...
aa980948d8
3
.gitignore
vendored
3
.gitignore
vendored
@ -5,6 +5,3 @@ node_modules/
|
|||||||
public/css/
|
public/css/
|
||||||
public/js/
|
public/js/
|
||||||
|
|
||||||
# Local data storage
|
|
||||||
data/
|
|
||||||
|
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"database": {
|
|
||||||
"driver": "sqlite",
|
|
||||||
"connection_string": "data/overseer.db"
|
|
||||||
}
|
|
||||||
}
|
|
36
package-lock.json
generated
36
package-lock.json
generated
@ -9,7 +9,6 @@
|
|||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"license": "BSD-2-Clause",
|
"license": "BSD-2-Clause",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"config": "^3.3.8",
|
|
||||||
"express": "^4.18.2",
|
"express": "^4.18.2",
|
||||||
"sequelize": "^6.25.3",
|
"sequelize": "^6.25.3",
|
||||||
"sqlite3": "^5.1.2",
|
"sqlite3": "^5.1.2",
|
||||||
@ -1042,17 +1041,6 @@
|
|||||||
"typedarray": "^0.0.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": {
|
"node_modules/console-control-strings": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
|
||||||
@ -2757,17 +2745,6 @@
|
|||||||
"integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
|
"integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
|
||||||
"dev": true
|
"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": {
|
"node_modules/just-debounce": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/just-debounce/-/just-debounce-1.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/just-debounce/-/just-debounce-1.1.0.tgz",
|
||||||
@ -7045,14 +7022,6 @@
|
|||||||
"typedarray": "^0.0.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": {
|
"console-control-strings": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
|
||||||
@ -8420,11 +8389,6 @@
|
|||||||
"integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
|
"integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"json5": {
|
|
||||||
"version": "2.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz",
|
|
||||||
"integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA=="
|
|
||||||
},
|
|
||||||
"just-debounce": {
|
"just-debounce": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/just-debounce/-/just-debounce-1.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/just-debounce/-/just-debounce-1.1.0.tgz",
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
"sass": "^1.55.0"
|
"sass": "^1.55.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"config": "^3.3.8",
|
|
||||||
"express": "^4.18.2",
|
"express": "^4.18.2",
|
||||||
"sequelize": "^6.25.3",
|
"sequelize": "^6.25.3",
|
||||||
"sqlite3": "^5.1.2",
|
"sqlite3": "^5.1.2",
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
const dbConfig = require('config').get('database');
|
|
||||||
const Sequelize = require("sequelize");
|
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 = {};
|
const db = {};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user