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
- To change the station just modify the url. E.g http://your-site.com/EUS will show euston station times
- To change the amount of boards on the screen just add a number to the end. E.g http://your-site.com/EUS/12
- To view a platform style board just modify the url with a prefix of 'singleboard'. E.g http://your-site.com/singleboard/EUS
To view a running example head over to https://www.leddepartureboard.com/EUS/12
- 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.
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
-
Make sure you have the following installed on your machine
-
Clone this repository locally
git clone https://github.com/benfl3713/DepartureBoard.git cd DepartureBoard
-
Install dependencies
cd DepartureBoardWeb/ClientApp npm install
-
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>
-
Either use vscode and press
F5
to run the application, or inside the DepartureBoardWeb folder rundotnet run