GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pgadmin-org/pgaweb: The pgAdmin Website

BranchesTags
Open more actions menu

Latest commit

 

History

348 Commits
348 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
blogs
blogs
 
 
docs
docs
 
 
download
download
 
 
faq
faq
 
 
news
news
 
 
pgaweb
pgaweb
 
 
search
search
 
 
security
security
 
 
static
static
 
 
tools
tools
 
 
tsvector_field
tsvector_field
 
 
utils
utils
 
 
versions
versions
 
 
videos
videos
 
 
.eslintignore
.eslintignore
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitignore
.gitignore
 
 
.pycodestyle
.pycodestyle
 
 
README.md
README.md
 
 
critical-css-postprocessor.js
critical-css-postprocessor.js
 
 
load_docs.sh
load_docs.sh
 
 
manage.py
manage.py
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
requirements.txt
requirements.txt
 
 
webpack.prod.js
webpack.prod.js
 
 

Repository files navigation

pgAdmin Website

Installation instructions

Prerequisites

  • Python 3 (CI uses 3.13).
  • A PostgreSQL server that you can create roles and databases on.
  • Node.js 22.13 or later, which the critical css step of the build requires. CI builds with Node.js 24.

Install Python dependencies

Run the command:

pip install -r requirements.txt

Database setup

Create a role and database

The site connects as the pgaweb role, so create it and give it ownership of the database. Since PostgreSQL 15 only the database owner can create tables in the public schema by default, so migrate will fail with permission denied for schema public if the database belongs to some other role.

createuser -P pgaweb
createdb -O pgaweb pgaweb

Create local settings file

pgaweb/settings.py imports pgaweb/settings_local.py at the end, if it exists, so the local file only needs the settings you want to override; do not copy the whole of settings.py. The defaults connect over the Unix socket in /var/run/postgresql, which uses peer authentication on most Linux distributions and so only works if your operating system user is also called pgaweb. Otherwise, connect over TCP with the password set above:

DATABASES = {
    'default': {
        'ENGINE': 'pgaweb.db',
        'NAME': 'pgaweb',
        'USER': 'pgaweb',
        'PASSWORD': 'the password you gave createuser',
        'HOST': 'localhost',
        'PORT': '',
    }
}

Migrate database

The migrations are committed to the repository, so there is no need to run makemigrations.

./manage.py migrate

Populate the table

You will at least need to:

./manage.py loaddata ./versions/fixtures/versions.json

If you want to see the other content in the site running locally, you will need to repeat this for the other fixtures:

./manage.py loaddata ./download/fixtures/packages.json
./manage.py loaddata ./download/fixtures/distributions.json
./manage.py loaddata ./download/fixtures/versions.json
./manage.py loaddata ./download/fixtures/downloads.json
./manage.py loaddata ./faq/fixtures/categories.json
./manage.py loaddata ./faq/fixtures/faqs.json
./manage.py loaddata ./news/fixtures/news.json

Run the build

The critical css step no longer needs a browser. If it fails, the build still succeeds and the site still renders correctly, but with the complete stylesheet in place of the critical css, so check the build output for a Critical css generation FAILED warning.

npm ci
npm run build

Adding images

The build copies static/img/* and static/img/screenshots/ into static/COMPILED/assets/img/ as they are, without compressing them, so compress a new or changed image before committing it, for example with:

pngquant --quality=0-50 --skip-if-larger --force --ext .png image.png
jpegtran -copy none -optimize -outfile out.jpg image.jpg
npx svgo image.svg

Leave static/img/bimi.svg alone: it must stay in the SVG Tiny PS profile that BIMI requires, and svgo strips its <title>.

Start the application

./manage.py runserver

WSGI Deployment

The server will automatically compile SCSS files at startup. If you're running behind (for example) uWSGI, you may need to manually create the static/COMPILED directory and ensure it has the correct permissions/ownership to allow updates to be made at startup.

About

The pgAdmin Website

Resources

Readme
Activity
Custom properties

Stars

3 stars

Watchers

2 watching

Forks

6 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.