Hanzo
PlatformHanzo IAMDeveloper Guide

Frontend

Hanzo IAM web UI source layout and how to run or customize it.

The Hanzo IAM web UI lives in the /web directory: https://github.com/iam/iam/tree/master/web. It is a Create React App (CRA) project with this layout:

File/DirectoryDescription
publicRoot HTML and static assets
srcApplication source code
craco.config.jsCraco config (e.g. theme; default primary is blue)
crowdin.ymlCrowdin i18n config
package.jsonNPM/Yarn dependencies
yarn.lockLock file

Under /src:

File/DirectoryDescription
account“My profile” page for signed-in users
authAuth flows: OAuth, SAML, sign-up, sign-in, forgot password
backendClient for the Go API (all fetch calls)
basicDashboard (home) and card widgets
commonShared UI components
localesi18n JSON (synced with Crowdin)
App.jsRoot and routing
Setting.jsShared helpers
*ListPage.js / *EditPage.jsList and edit pages per resource (e.g. OrganizationListPage.js, OrganizationEditPage.js)

How is this guide?

Last updated on