Skip to content

lucas42/lucos_transport

Repository files navigation

lucos Transport

A web app for keeping track of public transport, particularly on forms of transport where data connections are highly variable.

Dependancies

  • nodejs
  • npm

Forms of transport currently supported:

  • London Underground
  • Docklands Light Railway
  • London Overground
  • London River Bus Services
  • Elizabeth Line

Setup

Development

To set up the app run:

  • npm install
  • npm run build
  • npm start

Testing

To run unit tests using ava, run:

  • npm install
  • npm test

Production

  • npm install --production (or --only=production on more recent version of npm)
  • npm run build
  • npm start

You should also set the following environment variables: TFL_KEY - generated here: https://api-portal.tfl.gov.uk/profile The app appears to run fine without these being set, but registering for a key helps to keep track of which apps are making which requests to the API and increases the limit of requests that can be made.

Running using docker compose

TFL_APP=<secret> nice -19 docker-compose up -d --no-build

Building

The build is configured to run in Dockerhub when a commit is pushed to the main branch in github.

About

A web app for keeping track of public transport

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •