Openg2p IAM Service

This page provides comprehensive documentation for the installation of Openg2p IAM Service

Prerequisites

  • Any machine running Linux (e.g., Ubuntu), macOS, or Windows

  • Python3.10 or later

  • Git

  • PostgreSQL

  • virtualenv

Steps to install

Install from source

  • Install dependencies

sudo apt install -y python3-pip python3-dev build-essential libpq-dev
  • Create a Portal folder.

mkdir staff-portal
  • Navigate to the Portal folder.

cd staff-portal
  • Clone the repository.

git clone https://github.com/OpenG2P/openg2p-fastapi-common.git
git clone https://github.com/OpenG2P/openg2p-iam-service.git
  • Create a virtual environment with Python 3.10

  • Activate the virtual environment.

Checkout 1.1 branch for openg2p-fastapi-common

  • Install the necessary dependencies.

  • Create a .env file in the openg2p-iam-service/iam-staff-portal-api directory.

  • Run migrations to set up the database.

Seeding the database (optional)

Import the CSV file below into the login_providers table.

  • Nginx Configuration: Configure Nginx to act as a reverse proxy for Openg2p IAM Service

  • 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:

Quick start

  • Start the development server.

Last updated

Was this helpful?