Skip to content

HSLdevcom/hsl-map-generator-ui

Repository files navigation

HSL Map Generator UI

Install

Clone the repo via git

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

Install dependencies

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

Run

Pre-step: Create Digitransit apikey

Create .env file and place your Digitransit apikey there. If you still don't have your own, generate one on https://portal-dev.digitransit.fi or https://portal.digitransit.fi (dev / prod). Without apikey the map won't work and generation will fail.

Start in development mode

$ yarn start

Runs at http://localhost:3000/

Build and run in production mode without Docker

$ yarn build
$ yarn serve

Runs at http://localhost:3000/

Build and run in Docker container

$ docker build -t hsl-map-generator-ui .
$ docker run -d -p 3000:3000 hsl-map-generator-ui

*Note: requires a node version >= 8.6.0

Uses REST APIs from hsl-map-generator-server (kartat.hsl.fi).

Run cypress tests

To run cypress tests use

./node_modules/.bin/cypress run

If you want to use the cypress ui for running tests use

./node_modules/.bin/cypress open

License

MIT © HSL

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages