Remove unused dependancies

This commit is contained in:
Fred Boniface 2022-12-20 19:03:30 +00:00
parent d9380b354f
commit df2c449958
6 changed files with 2301 additions and 2152 deletions

10
.test-tools/compose.yaml Normal file
View 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

View File

@ -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_PASS||YES|Database Password|
|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_LDB_KEY||YES|National Rail LDBWS API Key|
|OWL_LDB_SVKEY||NO|National Rail LDBSVWS API Key|

4406
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,10 +3,8 @@
"axios": "^1.2.1",
"express": "^4.18.2",
"ldbs-json": "^1.2.1",
"needle": "^3.2.0",
"node-gzip": "^1.1.2",
"pg": "^8.8.0",
"sqlite3": "^5.1.2"
"mongodb": "^4.13.0",
"node-gzip": "^1.1.2"
},
"name": "owlboard",
"description": "OwlBoard is an API and PWA for live rail departure board in the UK.",

View File

@ -6,19 +6,19 @@ const database = require( '../utils/dbinit.utils' )
const dbUser = process.env.OWL_DB_USER || "owl"
const dbPass = process.env.OWL_DB_PASS || ""
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 { Client } = require( 'pg' )
const client = new Client(options)
async function readquery(query){
async function getCrs(tiploc) {
}
async function writeQuery(query){
async function getTiploc(crs) {
}
async function checkCrs(crs) {
}

View File

@ -2,21 +2,10 @@
// init() : Exported: Uses the internal functions to initialise databases.
// check() : Checks authentication, presence of tables and contents of tables.
// build() : Builds the lookup table using the corpus.utils to download data.
const dbCfg = require('../configs/database.configs');
const corpus = require('../utils/corpus.utils');
async function init(){
}
async function check(){
}
async function build(){
}
module.exports = {
init
}