Flask + Postgres Sample App

Prerequisites

  • Docker
  • Docker compose

Bring up

$   git clone https://github.com/sujee/flask-postgres-sample
$   cd flask-postgres-sample

$   docker compose up -d

First time you run this, it will build the app.

And it will launch the following components

Test-1: Check DB Connection

Log into adminer UI running on localhost:8080

  • username: postgres
  • password: postgres123

Once you login you will see happydb.

If this works, postgres and adminer are working together.

Test-2: Check Web app

Go to webapp running at localhost:8000

You should see a Hello world image as follows

Congratulations! 👏