G2P Bridge
Installation of G2P Bridge on a developer machine
Developers can set up and run the G2P Bridge on their local machines. This guide outlines the steps to install G2P Bridge on a Linux-based laptop or desktop.
Prerequisites
Python3
Git
PostgreSQL
Redis
Celery
Installation of G2P Bridge
1. Update system packages
Log in to your Linux server using SSH and update the package list and upgrade the existing packages:
sudo apt update
sudo apt upgrade -y2. Install dependencies
sudo apt install -y python3-pip python3-dev build-essential libpq-dev3. Install and configure PostgreSQL
G2P Bridge requires PostgreSQL as the database engine. Install PostgreSQL (if not already installed) and create a new database user for G2P Bridge.
4. Clone the G2P Bridge Repository
Clone the consolidated
g2p-bridgemonorepo to your local machine.
5. Install Python Libraries and G2P Bridge Components
Setting up the Bridge API
Make a new Python virtual environment.
Activate the virtual environment.
Use
pipto install the required Python packages, including the core libraries for the G2P Bridge.Create a .env file
Migrate the database schema
Run the API server on
127.0.0.1:8000
Setting up the Bridge Celery Beat
Make a new Python virtual environment.
Activate the virtual environment.
Use
pipto install the required Python packages, including the core libraries for the G2P Bridge.Create a .env file
Run redis-server
Run the celery beat
Setting up the Bridge Celery Worker
Make a new Python virtual environment.
Activate the virtual environment.
Use
pipto install the required Python packages, including the core libraries for the G2P Bridge.Create a .env file
Run redis-server (if not already started)
Run the celery beat
Last updated
Was this helpful?