How to Start Development Server
Technology Stack ¶
PAIG provides a platform for AI governance. It allows users to governance and audits the data on one platform. PAIG uses the following technologies:
* Web Application Framework: ReactJS
* Backend: FastAPI (Python)
* Database: Relational Database like SQLite, MySQL, PostgreSQL etc (default sqlite)
How to Start Web Server ¶
Prerequisites¶
- Python: >=3.10
- NodeJS: =14.17.5
Steps to run the development Web Server¶
- Fork the repository https://github.com/privacera/paig.
Bash - Run the script to build the web UI.
- Change directory to the root level of the repository.
- Go to the backend directory.
bash cd backend
- Create a virtual environment.
Bash - Activate the virtual environment.
Bash - Install the dependencies.
Bash - Change directory to the paig.
Bash - Run the web server. One Such example is:
Bash Note: Admin user credentials.Bash
How to Start/Build Web UI ¶
Prerequisites¶
- NodeJS: =14.17.5
Steps to run the development web UI¶
- Fork the repository https://github.com/privacera/paig.
Bash - Change directory to the frontend/webapp repository
- Install the dependencies
Bash - Web UI configuration, including proxy configuration, can be found in the config/path.js file. Proxy should be set to web server url.
JavaScript - Run the web UI Note: Admin user credentials.
Bash
How to Create Web UI Build with Script ¶
You can use the script to build the web UI. The script will create the build and copy the build to the backend templates folder. 1. Run the script to build the web UI.
How to Create Web UI Build Manually ¶
- Change directory to the frontend/webapp repository
- Run the command to install the dependencies
Bash - Run the command to create the build
Bash - The build will be created in the public folder
- Copy the build to the web server so that it can be served through the web server.
Bash
Logging ¶
PAIG provides a way to configure logging configurations and level. You can edit logging configuration to customize logging for PAIG.