For the complete documentation index, see llms.txt. This page is also available as Markdown.

Staff Portal UI

Run the OpenG2P Registry Staff UI locally against remote Staff Portal API, IAM, Masterdata, and AWE services that are already deployed.

Run Staff UI locally with remote APIs.

Prerequisites

  • Node.js and npm

  • Nginx

  • mkcert (local TLS certificates)

  • The following remote services must already be running and deployed (this guide only runs Staff UI locally):

    • Staff Portal API

    • IAM

    • Masterdata API

    • AWE

Configure .env.local so Staff UI points at those deployed environments (BACKEND_API_URL, IAM_URL, MASTERDATA_BACKEND_API_URL, and related settings).

Setup

1. Add hostname

sudo nano /etc/hosts

Add:

127.0.0.1 localstaff-ui.dev.openg2p.org

2. Create TLS certificate for the hostname

3. Create Nginx configuration for Staff UI

Paste:

Create the symlink and reload Nginx:

4. Clone the repository

5. Use local ui-widgets (optional)

If you are developing against a local widget library build:

6. Create .env.local in the staff-ui directory

Adjust URLs and APPLICATION_MNEMONIC for the registry environment you are targeting. See ui/staff-ui/.env.example for the full set of optional variables.

7. Build and start Staff UI

8. Open Staff UI

Open https://localstaff-ui.dev.openg2p.org.

Note

To use a different local hostname, repeat the /etc/hosts update, TLS certificate generation, Nginx server_name / certificate paths, and matching .env.local values (especially COOKIE_DOMAIN if the parent domain changes).

Last updated

Was this helpful?