Play a game of Scotland Yard with your friends using public transport.
Requirements:
To be able to use the TRIAS API, you need an API Token which you can put into a file called robusta/.env with the following structure:
TRIAS_API_ENDPOINT=YOUR_API_ENDPOINT
TRIAS_ACCESS_TOKEN=YOUR_TOKEN
Robusta can be configured via environment variables or by using a .env file.
Options:
TRIAS_API_ENDPOINTTRIAS_ACCESS_TOKENNO_FETCH_TRAINS: when this is set, no train data is fetched (in particular,TRIAS_API_ENDPOINTandTRIAS_ACCESS_TOKENare not needed)PORT: the port (default: 3000)
If you are not in Karlsruhe, but want to use the app, you have to change some stuff:
- The map center: update
CENTERinliberica/src/components/map/Map.tsx - The list of stops: update
STOPSinrobusta/src/kvv.rs - Points for route interpolation: update
robusta/data/route_curves.csv(optional)
For development first navigate into the robusta directory and execute the cargo run command.
Then after that has completed and a server is hosted, navigate to the liberica directory in a new terminal and execute npm run dev.
This should give you a URL to the live server which you can use for local development.
For deployment simply execute cargo run and proxy the https connection using something like nginx. The frontend will be hosted by the rust server as well.
