Local Development dbs-p13n
🚧 WIP
- Execute the following commands:
bash
cd stack
podman compose up
# or
# docker compose up
cd ../personalization-service
./runLocal.sh
cd ../personalization-webcomponents
npm i
npm run dev- Follow https://github.com/it-at-m/dbs/blob/main/login-webcomponent/README.md#dev-setup
- Open browser http://localhost:8082/
- Login with
writer:writerorreader:reader
P13N
Generating OpenAPI Docs and API-Client for Webcomponents
We use Spring Docs to generate the OpenAPI docs for our RESTful personalization-service. The Docs are not generated automatically.
When we make changes to the api we need to regenerate the docs:
- Start personlaization-service locally
- Open http://localhost:39146/v3/api-docs
- Download and save the file under
personalization-service/api-docs.json
Next up the frontends client needs to be updated:
- Install the generator once globally
npm install @openapitools/openapi-generator-cli -g typescript-fetch
IMPORTANT
When you are behind a proxy the api-gen:generate command needs to have your proxy envs set correctly. E.g.:
shell
export HTTPS_PROXY="http://<proxy-url>:<proxy-port>"shell
cd personalization-webcomponents
npm i
npm run api-gen:generate