sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install git libssl-dev python-protobuf build-essential
sudo apt-get install python3.9 python3.9-dev python3.9-venv python3-wheel libpq-dev libldap2-dev libsasl2-dev
Clone pgmanage repository; change to the root directory of cloned repository, checkout dev branch:
git clone https://github.com/commandprompt/pgmanage.git
cd pgmanage
git checkout dev
- Activate the Python virtual environment created in the previous step:
python3.9 -mvenv .env
source .env/bin/activate
- Install Python dependencies using pip:
pip install -r requirements.txt
- Navigate to the pgmanage/app/static/assets/js/pgmanage_frontend/ directory and install front-end Node.js dependencies using npm:
Note
Node.js version 18.x is required
cd pgmanage/app/static/assets/js/pgmanage_frontend/
npm install
- Start a development front-end server:
npm run dev
- In a separate terminal session navigate to the pgmanage subdirectory of the project and start the application back-end service by running:
cd [project_root]/
source .env/bin/activate
cd pgmanage
./manage.py runserver
-
When you see that the application server is ready, open http://localhost:8000 in your preferred web browser.
-
Log in using the following credentials:
- Username: admin
- Password: admin