The OwlBoard API Server & Hub Repo for all issues
Go to file
Fred Boniface a2777f1f37 Add time logs to StaffLdb Transformation
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-08-07 10:39:50 +01:00
.test-tools Initial Push (v0.0.2) 2023-02-09 20:34:53 +00:00
.vscode Add find by headcode for train services 2023-05-31 20:04:00 +01:00
mail-templates Fix email templates 2023-08-02 19:59:06 +01:00
src Add time logs to StaffLdb Transformation 2023-08-07 10:39:50 +01:00
test/utils Add length to LDB Test: 2023-08-05 23:05:28 +01:00
.dockerignore pis (#12) 2023-05-06 21:54:49 +01:00
.eslintrc.js Extend TS Usage 2023-07-24 01:17:00 +01:00
.gitignore Initial Push (v0.0.2) 2023-02-09 20:34:53 +00:00
.npmrc Working on staffStation.utils and added tests 2023-08-01 21:34:30 +01:00
app.js Add support for deploying from TS source 2023-07-28 20:51:43 +01:00
Dockerfile Add tests as a Docker build step to ensure no container with failing tests can be published 2023-08-02 21:32:58 +01:00
jest.config.js Working on staffStation.utils and added tests 2023-08-01 21:34:30 +01:00
LICENSE Initial commit 2023-02-08 13:40:33 +00:00
package-lock.json Bump package-lock packages 2023-08-07 10:28:57 +01:00
package.json Add via field to staffLDB.TrainServices.Origin/Destination fields 2023-08-07 10:28:21 +01:00
README.md Update 'README.md' 2023-08-05 16:15:39 +01:00
tsconfig.json Working on staffStation.utils and added tests 2023-08-01 21:34:30 +01:00

OwlBoard

OwlBoard is both a backend API, and a frontend Arrival/Departure board webapp.

Powered by Node.JS and using the ldbs-json module, the OwlBoard API provides up to date train departure information for any station in the UK.

Build

To build the application with Docker, clone the repository and run docker build

API Endpoints:

API Documentation has been removed as it is now out of date. I do intent to re-write the documentation at a later date.

Configuration:

Configuration options are set through environment variables. These configuration options are shared with other programs in the OwlBoard ecosystem.

VAR DEFAULT REQUIRED PURPOSE
OWL_SRV_PORT 8460 NO Web Server Port
OWL_SRV_LISTEN 0.0.0.0 NO Web Server Listen Address
OWL_DB_USER owl NO Database Username
OWL_DB_PASS twittwoo NO Database Password - Do not leave as default in production
OWL_DB_NAME owlboard NO Database Name
OWL_DB_PORT 27017 NO Database Server Port
OWL_DB_HOST localhost NO Database Server Host
OWL_LDB_KEY YES National Rail LDBWS API Key
OWL_LDB_SVKEY NO National Rail LDBSVWS API Key
OWL_LDB_CORPUSUSER YES Network Rail NROD Username
OWL_LDB_CORPUSPASS YES Network Rail NROD Password
OWL_GIT_ISSUEBOT NO Gitea API Key for issue reporting
OWL_GIT_APIENDPOINT NO Gitea API Endpoint

In the case that OWL_LDB_SVKEY is not available, staff versions of departure board, etc. will not be available.

In the case that OWL_GIT_ISSUEBOT is not available, the 'Report Issue' page will not be able to POST data.

Database

OwlBoard uses MongoDB

The OwlBoard database is managed by the dbmanager application which will configure and maintain the database and should be run at least twice a day to ensure timetable data is up to date, see https://git.fjla.uk/owlboard/db-manager.