A web app for keeping track of public transport, particularly on forms of transport where data connections are highly variable.
- nodejs
- npm
- London Underground
- Docklands Light Railway
- London Overground
- London River Bus Services
- Elizabeth Line
To set up the app run:
npm install
npm run build
npm start
To run unit tests using ava, run:
npm install
npm test
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.
TFL_APP=<secret> nice -19 docker-compose up -d --no-build
The build is configured to run in Dockerhub when a commit is pushed to the master branch in github.