Developer Install
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-devCreate a Portal folder.
mkdir staff-portalNavigate to the Portal folder.
cd staff-portalClone the repository.
git clone https://github.com/OpenG2P/openg2p-fastapi-common.git
git clone https://github.com/OpenG2P/iam-service.gitCreate 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
.envfile in theiam-service/iam-staff-portal-apidirectory.
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.
Access Swagger API Documentation.
Last updated
Was this helpful?