Trustify UI Component
| branch | last merge CI | last merge image build | nightly CI |
|---|---|---|---|
| main |
| branch | last merge e2e CI | nightly e2e CI |
|---|---|---|
| main |
- NodeJS 20. Use nvm to install NodeJS
nvm install 20
nvm use 20- Backend. Clone trustify and there execute:
cargo run --bin trustdIt will start the backend in http://localhost:8080
npm clean-install --ignore-scriptsnpm run start:devKnown issue: after installing the dependencies for the first time and then executing
npm run start:devyou will see an errorconfig/webpack.dev.ts(18,8): error TS2307: Cannot find module '@trustify-ui/common' or its corresponding type declarationsStop the command with Ctrl+C and run the commandnpm run start:devagain and the error should be gone. This only happens the very first time we install dependencies in a clean environment, subsequent commandsnpm run start:devshould not give that error. (bug under investigation)
Open browser at http://localhost:3000
| ENV VAR | Description | Default value |
|---|---|---|
| TRUSTIFY_API_URL | Set Trustification API URL | http://localhost:8080 |
| AUTH_REQUIRED | Enable/Disable authentication | true |
| OIDC_CLIENT_ID | Set Oidc Client | frontend |
| OIDC_SERVER_URL | Set Oidc Server URL | http://localhost:8090/realms/trustify |
| OIDC_SCOPE | Set Oidc Scope | openid |
| ANALYTICS_ENABLED | Enable/Disable analytics | false |
| ANALYTICS_WRITE_KEY | Set Segment Write key | null |
Note
When using the crate it is expected to build the UI always in Prod mode