Skip to content

carteakey/boilerplate-web-form

Repository files navigation

Simple Web Form

Created using

  • Flask
  • Bootstrap
  • PostgreSQL

Steps to run

Build the image:

docker compose build

Once the image is built, run the container:

docker compose up -d

Create the tables in Postgres

docker compose exec web python manage.py create_db

Run the application

Try http://localhost:5000/

Verification

To check the database tables

Open psql

docker compose exec db psql --username=simple_web_form --dbname=simple_web_form

Connect to database

\c simple_web_form

Query the table

select * from contacts;

Quit

\q