Skip to content

Latest commit

 

History

History
72 lines (50 loc) · 3.88 KB

README.md

File metadata and controls

72 lines (50 loc) · 3.88 KB

Trustify-ui

contributions welcome

Trustify UI Component

Build and Test Status

branch last merge CI last merge image build nightly CI
main CI (repo level) Multiple Architecture Image Build Nightly CI (repo level @main)
branch last merge e2e CI nightly e2e CI
main CI (global Trustify CI) Nightly CI (global trustify CI @main)

Development

Requisites

  • 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

Install dependencies

npm clean-install --ignore-scripts

Init the dev server

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 error config/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 command npm 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 commands npm run start:dev should not give that error. (bug under investigation)

Open browser at http://localhost:3000

Environment variables

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

Crate

Note

When using the crate it is expected to build the UI always in Prod mode