Remove unused dependancies
This commit is contained in:
parent
d9380b354f
commit
df2c449958
10
.test-tools/compose.yaml
Normal file
10
.test-tools/compose.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
version: '3.1'
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
mongo:
|
||||||
|
image: mongo
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
MONGO_INITDB_ROOT_USERNAME: root
|
||||||
|
MONGO_INITDB_ROOT_PASSWORD: example
|
@ -70,7 +70,7 @@ The app is designed to be run within Kubernetes or within a Docker container, as
|
|||||||
|OWL_DB_USER||YES|Database Username|
|
|OWL_DB_USER||YES|Database Username|
|
||||||
|OWL_DB_PASS||YES|Database Password|
|
|OWL_DB_PASS||YES|Database Password|
|
||||||
|OWL_DB_NAME|owlboard|NO|Database Name|
|
|OWL_DB_NAME|owlboard|NO|Database Name|
|
||||||
|OWL_DB_PORT|3306|NO|Database Server Port|
|
|OWL_DB_PORT|27017|NO|Database Server Port|
|
||||||
|OWL_DB_HOST|database|NO|Database Server Host|
|
|OWL_DB_HOST|database|NO|Database Server Host|
|
||||||
|OWL_LDB_KEY||YES|National Rail LDBWS API Key|
|
|OWL_LDB_KEY||YES|National Rail LDBWS API Key|
|
||||||
|OWL_LDB_SVKEY||NO|National Rail LDBSVWS API Key|
|
|OWL_LDB_SVKEY||NO|National Rail LDBSVWS API Key|
|
||||||
|
4388
package-lock.json
generated
4388
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -3,10 +3,8 @@
|
|||||||
"axios": "^1.2.1",
|
"axios": "^1.2.1",
|
||||||
"express": "^4.18.2",
|
"express": "^4.18.2",
|
||||||
"ldbs-json": "^1.2.1",
|
"ldbs-json": "^1.2.1",
|
||||||
"needle": "^3.2.0",
|
"mongodb": "^4.13.0",
|
||||||
"node-gzip": "^1.1.2",
|
"node-gzip": "^1.1.2"
|
||||||
"pg": "^8.8.0",
|
|
||||||
"sqlite3": "^5.1.2"
|
|
||||||
},
|
},
|
||||||
"name": "owlboard",
|
"name": "owlboard",
|
||||||
"description": "OwlBoard is an API and PWA for live rail departure board in the UK.",
|
"description": "OwlBoard is an API and PWA for live rail departure board in the UK.",
|
||||||
|
@ -6,19 +6,19 @@ const database = require( '../utils/dbinit.utils' )
|
|||||||
const dbUser = process.env.OWL_DB_USER || "owl"
|
const dbUser = process.env.OWL_DB_USER || "owl"
|
||||||
const dbPass = process.env.OWL_DB_PASS || ""
|
const dbPass = process.env.OWL_DB_PASS || ""
|
||||||
const dbName = process.env.OWL_DB_NAME || "owlboard"
|
const dbName = process.env.OWL_DB_NAME || "owlboard"
|
||||||
const dbPort = process.env.OWL_DB_PORT || 0
|
const dbPort = process.env.OWL_DB_PORT || 27017
|
||||||
const dbHost = process.env.OWL_DB_HOST || "database"
|
const dbHost = process.env.OWL_DB_HOST || "database"
|
||||||
|
|
||||||
|
|
||||||
const { Client } = require( 'pg' )
|
async function getCrs(tiploc) {
|
||||||
|
|
||||||
const client = new Client(options)
|
|
||||||
|
|
||||||
async function readquery(query){
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function writeQuery(query){
|
async function getTiploc(crs) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
async function checkCrs(crs) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,21 +2,10 @@
|
|||||||
// init() : Exported: Uses the internal functions to initialise databases.
|
// init() : Exported: Uses the internal functions to initialise databases.
|
||||||
// check() : Checks authentication, presence of tables and contents of tables.
|
// check() : Checks authentication, presence of tables and contents of tables.
|
||||||
// build() : Builds the lookup table using the corpus.utils to download data.
|
// build() : Builds the lookup table using the corpus.utils to download data.
|
||||||
const dbCfg = require('../configs/database.configs');
|
|
||||||
const corpus = require('../utils/corpus.utils');
|
const corpus = require('../utils/corpus.utils');
|
||||||
|
|
||||||
async function init(){
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
async function check(){
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
async function build(){
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
init
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user