-
install pnpm package manager
$ sudo npm i -g pnpm
-
install the dependencies
$ pnpm install
-
setup the dev-environment
$ pnpm devenv:setup
(you may need docker as well as docker-compose)
This will launch all required containers containing external services like the database and keycloak. -
setup a kubernetes cluster of choiche (docker-desktop recommended) and place the kubeconfig containing the credentials in your home directory:
~/.kube/config
-
copy the
.env.template
to.env
and adjust the settings to your needs.
The application consists of two pieces:
Backend: can be started using this repo and following the setup inscructions above. Then run:
$ pnpm start
--- # separate terminal # ---
$ pnpm start:schedule
Frontend: can be launched using the setup instructions in the shelfservice-angular repo.
To use the Backend soleley, it exposes a Swagger-UI endpoint on localhost:3000.
The app has unit and end-to-end tests which can be executed seperateley (pnpm test:unit
/ pnpm test:e2e
).
Alternativeley the combining script can be used (pnpm test:all-ci
), which will run both test suites and merge their coverage reports into a single one, which will be available as html here.