Skip to content

City-of-Helsinki/parking-permits-ui

Repository files navigation

Build Status Continuous Integration SonarCloud Analysis

Parking Permits UI

Parking Permits Webshop for buying parking permits in City of Helsinki.

Related repositories:

Admin UI

Backend

Development

Prerequisites

  • Yarn 1.22.x or higher
  • Node 14+ or higher

The application requires a running parking-permits backend, you can find more details in this repo on how to set up the backend.

Development

Clone the repository:

$ git clone [email protected]:City-of-Helsinki/parking-permits-ui.git

Install the project:

$ cd parking-permits-ui
$ yarn install

Make a local .env.template copy:

$ cp .env.template .env.development.local

Run the application in the development mode:

$ yarn start

This will start the application on port 3000.

Starting dockerized development environment

  1. Check if Docker and docker CLI installed, port 3000 is free, not occupied by running server.

  2. Start building docker image and start container:

    $ docker-compose up
    
  3. Open localhost:3000 on browser.

Testing

To run tests:

$ yarn test