Openg2p Registry Staff Portal UI

Developer Installation for Openg2p Registry Staff Portal UI

Setup

Follow these steps to set up Openg2p Registry Staff Portal UI:

  • Clone the Repository: Clone the Openg2p Beneficiary Portal UI repository from the source:

git clone [email protected]:OpenG2P/openg2p-registry-staff-portal-ui.git
  • Install Dependencies: Navigate into the cloned Openg2p Registry Staff Portal UI directory and install dependencies using npm:

npm install
  • Configuration: Configure the OpenG2P Registry Staff Portal UI to connect to the APIs by setting the required environment variables.

BACKEND_API_URL="https://staff-farmer-registry-gen2.dev.openg2p.org"
MASTERDATA_BACKEND_API_URL="https://gen2-master-data.dev.openg2p.org/"

APP_MNEMONIC="registry-ui"
APP_URL="http://localhost:3000"

PARTNER_IMPORT_EXPORT_ENABLE="true"
PARTNER_INGEST_URL="https://partner-farmer-registry-gen2.dev.openg2p.org/partner/ingest_data?data_model=dcivc"

VERIFY_SERVICE_URL="https://registry-farmer.dev.openg2p.org/v1/verify"
VP_CLIENT_ID="did:web:registry-farmer.dev.openg2p.org:v1:verify"
VP_PRESENTATION_ID="vp_id"
VP_PURPOSE="Digital identity verification for registry onboarding"
PAGE_SIZE=10

IAM_URL="http://iam.openg2p.my"
KEYCLOAK_LOGOUT_URL="https://keycloak2.openg2p.org/realms/{realmname}/protocol/openid-connect/logout"

Nginx Configuration: Configure Nginx to act as a reverse proxy for Openg2p Registry Staff Portal UI

  • Below is a sample Nginx configuration (/etc/nginx/sites-available/staff-portal.conf).

  • Enable Configuration: Enable the Nginx configuration by creating a symbolic link to sites-enabled

  • Adding domain to Hosts: Add the domain to the hosts for the system to recognize the domain.

  • Restart Nginx: Restart the Nginx service to apply the changes:

  • Start Openg2p IAM Service: Ensure that Openg2p IAM Service is up and running. Refer to the Openg2p IAM Service documentation.

  • Run Openg2p Registry Staff Portal UI: This command starts the development server. Open a web browser and navigate to the specified URL (http://localhost:3000arrow-up-right) or a specific domain as per nginx server (http://farmer-registry.openg2p.myarrow-up-right) to access the UI interface.

Last updated

Was this helpful?