Digitransit-ui is a mobile friendly User interface built to work with Digitransit APIs.
Application is built with React. React components can access data in two different ways:
Basically, division between alternatives is:
Installation instructions are available at GitHub
Tests run automatically in Browserstack:
Asset | Url |
---|---|
Routing - API | https://digitransit.fi/en/developers/apis/1-routing-api/ |
Realtime HSL - API | https://digitransit.fi/en/developers/apis/4-realtime-api/ |
Map - API | https://digitransit.fi/en/developers/apis/3-map-api/ |
Geocoding - API | https://digitransit.fi/en/developers/apis/2-geocoding-api/ |
Sentry | |
Piwik |
Dependecy | url |
---|---|
React | https://github.com/facebook/react |
React-leaflet | https://github.com/PaulLeCam/react-leaflet |
React-router | https://github.com/rackt/react-router |
React-autosuggest | https://github.com/moroshko/react-autosuggest |
react-router-relay | https://github.com/relay-tools/react-router-relay |
Relay | https://github.com/facebook/relay |
Babel relay plugin | https://github.com/facebook/relay |
Fluxible | https://github.com/yahoo/fluxible |
Material-ui | https://github.com/callemall/material-ui |
node-cjsx | https://github.com/SimonDegraeve/node-cjsx |
Leaflet | https://github.com/Leaflet/Leaflet |
Raven-js | https://github.com/getsentry/raven-js |
MQTT.js | https://github.com/mqttjs/MQTT.js |
Polyfill-service | https://github.com/Financial-Times/polyfill-service |
PBF | https://github.com/mapbox/pbf |
Sentry | https://github.com/getsentry/sentry |
Webpack | https://github.com/webpack/webpack |
Nightwatch | https://github.com/nightwatchjs/nightwatch |
Asset | Url |
---|---|
source | https://github.com/HSLdevcom/digitransit-ui |
DockerHub | https://hub.docker.com/r/hsldevcom/digitransit-ui/ |
Dockerfile | https://github.com/HSLdevcom/digitransit-ui/blob/master/Dockerfile |
The resulting Docker image is called hsldevcom/digitransit-ui and it is available at DockerHub. The image can be built using this build script.
To run Docker container, run:
docker run -p 8080:8080 -e CONFIG=hsl -e API_URL=http://api.digitransit.fi --name ui hsldevcom/digitransit-ui
To access Docker container:
http://localhost:8080/
For More information about how to use Docker see docker info.