Skip to content

CarlsonBuma/zhaw-1-python_postgresql_pgadmin

 
 

Repository files navigation

Python + PostgreSQL + pgAdmin

Table of Contents

Folder Structure

.
├─ .devcontainer/
│  ├─ devcontainer.json       # VS Code Dev Container config
│  └─ servers.json            # Pre-configured connection to PostgreSQL

├─ Data/                      # CSV and Excel sample datasets
│  ├─ apartments_data_prepared.csv
│  ├─ Northwind_Database.xlsx
│  └─ *.csv (Northwind tables)
├─ SQL/
│  └─ *.sql                    # SQL queries
├─ docker-compose.yml          # Defines PostgreSQL & pgAdmin services
├─ Dockerfile                  # Custom image setup
├─ init-db.sql                 # Initial db objects
├─ requirements.txt            # Python dependencies
├─ *.ipynb                     # Jupyter notebooks
├─ .gitignore                  # Git ignore rules
└─ README.md                   # Documentation (this file)

Run Docker containers (starts automatically)

VS Code -> left Menu -> search file 'docker-compose.yml' -> right click -> Compose Up

Database credentials

Host: db
Port: 5432
Maintenance database: postgres
Username: pgadmin
Password: geheim

Known issues and how to solve them

1.) The pgadmin4 webpage cannot be opened
- Check if both containers are running, if not, restart the containers.
- Wait until the forwarded ports are visible in the Terminal.
- Open pgadmin4 on port 5050.

License and credits

This project is intended for educational/demo purposes.
Sample data includes public datasets such as Northwind.
Please verify licenses if using in other contexts.

About

Database Setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 68.6%
  • Jupyter Notebook 31.4%