- Make sure your OS uses Node.js
v16
. These steps are tested with Node.jsv16.20.2
. - Clone or download this repository:
- If you clone this repository, navigate to the
external-widget-angular-example
folder. - If you download this repository, unzip it and navigate to the
external-widget-angular-example-master
folder.
- If you clone this repository, navigate to the
- Open a Terminal or Command Prompt window and run
npm install
. - Set the
NODE_OPTIONS
environment variable:- For Linux OS, run:
export NODE_OPTIONS=--openssl-legacy-provider
- For Windows OS, run:
set NODE_OPTIONS=--openssl-legacy-provider
- This is a workaround for compatibility with OpenSSL.
- For Linux OS, run:
- Run
npx ng serve
to run the application in development mode. - You can access the app at http://localhost:4200/
Go to SystemAdmin -> Application Configuration
"externalWidgetExtensions" : {
"uri" : "http://localhost:4200/assets/extension.json"
},
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_HOST
is 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