Skip to content

๐Ÿš… This Project allows a user to view live train times in the format of a station departure board

License

Notifications You must be signed in to change notification settings

rickduggan/DepartureBoard

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

DepartureBoard

Netlify Status "Buy Me A Coffee"

Welcome

This project is an angular website designed to present the UK and German train departures in a way similar to the led boards you find in stations accross the UK. For more info please see https://www.leddepartureboard.com

How to Use

  1. To change the station just modify the url. E.g http://your-site.com/EUS will show euston station times
  2. To change the amount of boards on the screen just add a number to the end. E.g http://your-site.com/EUS/12
  3. To view a platform style board just modify the url with a prefix of 'singleboard'. E.g http://your-site.com/singleboard/EUS

Working Example

To view a running example head over to https://www.leddepartureboard.com/EUS/12

Technology

  • Angular frontend using typescript as the scriping language.
  • C# asp.net core backend to retrieve the departure data.
  • Runs using dotnet core so is cross compatible accross operating systems.
  • Uses google firebase as the document storage and user authentication.

Docker

This project is also build into a docker image every time we merge to master. This means you can run this website very easiy simply by runnning the command
docker run -p 8080:80 -e "RealTimeTrainsToken=[INSERT_REALTIMETRAINS_TOKEN_HERE]" benfl3713/departure-board
This will run the website on port 8080 of the host

There is also a docker-compose file in this repository that will make it easier to spin up the website with the command
docker-compose up

Run locally

  1. Make sure you have the following installed on your machine

  2. Clone this repository locally

    git clone https://github.com/benfl3713/DepartureBoard.git
    cd DepartureBoard
  3. Install dependencies

    cd DepartureBoardWeb/ClientApp
    npm install
  4. Create config.xml file inside DepartureBoardWeb, and put the following in, making sure to put you realtimetrains token in

    <Config>
      <RealTimeTrainsToken>[INSERT_REALTIMETRAINS_TOKEN_HERE]</RealTimeTrainsToken>
    </Config>
  5. Either use vscode and press F5 to run the application, or inside the DepartureBoardWeb folder run dotnet run

About

๐Ÿš… This Project allows a user to view live train times in the format of a station departure board

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 50.5%
  • TypeScript 32.4%
  • C# 14.2%
  • SCSS 2.3%
  • Dockerfile 0.3%
  • HTML 0.1%
  • Other 0.2%