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

Openg2p Beneficiary Portal UI

Developer Installation for Openg2p Beneficiary Portal UI

Setup

Follow these steps to set up Openg2p Beneficiary Portal UI:

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

git clone https://github.com/OpenG2P/openg2p-beneficiary-portal-ui.git
  • Install Dependencies: Navigate into the cloned Openg2p Beneficiary Portal UI directory and install dependencies using npm:

npm install
  • Configuration: Configure Openg2p Beneficiary Portal UI to connect with the Openg2p Portal Server. This typically involves setting environment variables

NEXT_PUBLIC_BASE_PATH="/selfservice"
NEXT_PUBLIC_BASE_API_PATH="/v1/selfservice"
NEXT_PUBLIC_LANGUAGES_SUPPORTED="en fr tl"
  • Nginx Configuration: Configure Nginx to act as a reverse proxy for Openg2p Portal Server.

# Install Nginx if not already installed
sudo apt-get update
sudo apt-get install nginx -y

# Create a new configuration file for Openg2p Portal server
sudo nano /etc/nginx/sites-available/selfservice.conf
  • Below is a sample Nginx configuration (/etc/nginx/sites-available/selfservice.conf).

  • This configuration directs requests to /v1/selfservice to Openg2p-Portar-Server running on port 8001,

  • 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 Portal Server: Ensure that Beneficiary Portal Server is up and running. Refer to the Openg2p Portal Server documentation.

  • Run Openg2p Beneficiary Portal UI: This command starts the development server. Open a web browser and navigate to the specified URL (http://localhost:3000) or a specific domain as per nginx server (http://selfservice17.openg2p.my/selfservice) to access the UI interface.

Last updated

Was this helpful?