@axa-ch/pod-kmu-20-stable
v2.1.188
Published
TBD
Downloads
409
Readme
KMU 2.0 Pod
Prerequisites
npm
installedyarn
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
- With local services
npm run start
- With ACC env
npm run start-acc
- With DEV env
npm run start-dev
- With ACC stable env
npm run start-stable
- With local services
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.