#Steps to run
- Go to
{codeBeamerRepo}/zk/cb/cb-external-widget-api/packages/cb-widget-api - Check the node version
$ node --version - Set the node version to the same in
/external-widget-angular-examplewithnvm use {version} - Go back to
{codeBeamerRepo}/zk/cb/cb-external-widget-api/packages/cb-widget-api - run
$ npm install - run
$ npx webpack build - run
$ npm link - Go to
/external-widget-angular-example - run
$ npm link cb-widget-api - run
$ npm install - run
export NODE_OPTIONS=--openssl-legacy-provider-> this is just a workaround - run
$ npx ng serveto run the application in development mode
##Configuring in codebeamer Go to SystemAdmin -> Application Configuration
"externalWidgetExtensions" : {
"uri" : "http://localhost:4200/assets/extension.json"
},
##Deleting cache in codebeamer
If you would like to delete the cached widget config in codebeamer just hit this URL:
http://localhost:8080/cb/hc/caches/externalWidgetExtensionConfigCache/clear.spr
- run
$ ng build - run
$ docker build -t "external-widget" .
- run
$ docker run -e "SERVER_HOST=https://example.com" -it --rm -p 4200:4200 -p 443:443 external-widget- Where
SERVER_HOSTis the https host where the app will be hosted - A Let's Encrypt certificate will be fetched for the above
- Port 4200 is http
- Where