@axa-ch/pod-kmu-20

TBD

Usage no npm install needed!

<script type="module">
  import axaChPodKmu20 from 'https://cdn.skypack.dev/@axa-ch/pod-kmu-20';
</script>

README

KMU 2.0 Pod Build Status Actions Status

Prerequisites

  • npm installed
  • yarn installed
  • Make sure to configure git correctly (Windows vs. macOS) git config --global core.autocrlf true

Main dependencies

Run the app

  • Install the needed dependencies npm install
  • Run the app npm start

Typography

The patterns-library v2 does not yet support any typography

Development

Generating fixtures

You can generate new fixtures by running command npm run generate-fixtures, this creates new fixtures for both state (used for unit tests) and mock api. Fixtures are generated from json schemas using https://github.com/json-schema-faker/json-schema-faker.

Json schemas are located in __fixtures__/schemas and generated files are located in __fixtures__/__generated__.

API

The API base url depends on the stage environment You can change stage environment by passing different attribute value to data-stage="mock" or data-stage="local" in index.html. Stage environment is passed in as attibute automatically in deployed pod.