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 trustd
It will start the backend in http://localhost:8080
npm clean-install --ignore-scripts
npm run start:dev
Known issue: after installing the dependencies for the first time and then executing
npm run start:dev
you will see an errorconfig/webpack.dev.ts(18,8): error TS2307: Cannot find module '@trustify-ui/common' or its corresponding type declarations
Stop the command with Ctrl+C and run the commandnpm run start:dev
again and the error should be gone. This only happens the very first time we install dependencies in a clean environment, subsequent commandsnpm run start:dev
should 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