Skip to content

Map for teaching bus routes to drivers ("kuljettajaohje")

License

Notifications You must be signed in to change notification settings

HSLdevcom/hsl-map-web-ui

Repository files navigation

HSL Map Web UI

Install

Clone the repo via git

$ git clone https://github.com/HSLdevcom/hsl-map-web-ui

Install dependencies

$ cd hsl-map-web-ui && yarn install

Digitransit apikey

Create your own apikey for Digitransit (https://portal-dev-api.digitransit.fi) Copy .env to .env.local and place your apikey to REACT_APP_DIGITRANSIT_APIKEY variable.

Run

Start in development mode

$ yarn start

Runs at http://localhost:3000/kuljettaja

Build and run in production mode without Docker

yarn build
yarn global add serve
mkdir build/kuljettaja/ # Needs to be moved under subdirectory, because the app is served under /kuljettaja-path
mv build/* build/kuljettaja/
serve build/

Runs at http://localhost:3000/kuljettaja/

Build and run in Docker container

$ docker build -t hsl-map-web-ui --build-arg DIGITRANSIT_APIKEY=<your-key> .
$ docker run -d -p 0.0.0.0:3000:3000 hsl-map-web-ui

Note! Package.json defines the app will be run under /kuljettaja -path. To test your build on localhost:3000, change homepage to / and env as REACT_APP_ROOT_PATH=/

License

MIT © HSL

About

Map for teaching bus routes to drivers ("kuljettajaohje")

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published