Skip to content

Pythoholic/flaskuserapp

Repository files navigation

flaskuserapp

This application is to showcase the integration of Flask with Postgres.


We have dockerized the application
And we have added the graph-ql dashboard for the data query.

Commands that have been used in the Demo:
docker build -t flaskapp . docker images docker run flaskapp docker compose up -d docker ps -al docker compose ps docker compose logs flaskapp docker inspect flaskpostgresapp_flaskapp_1 docker exec -it flaskpostgresapp_flaskapp_1 /bin/sh docker image tag flaskapp flaskapp:1.0 docker system prune docker container prune docker volume prune


Configure AWS Credential:
aws configure


Login to AWS ECR:
aws ecr get-login-password --region ap-south-1 | docker login --username AWS --password-stdin 0785XXXX1519.dkr.ecr.ap-south-1.amazonaws.com


Create ECR Repository:
aws ecr create-repository --repository-name Pythoholic --image-scanning-configuration scanOnPush=true --region ap-south-1


Tagging Docker Image:
docker tag flaskapp:1.0 0785XXXX1519.dkr.ecr.ap-south-1.amazonaws.com/pythoholic:1.0


Pushing Docker Image:
docker push 0785XXXX1519.dkr.ecr.ap-south-1.amazonaws.com/pythoholic:1.0


Removing Docker Image:
docker image rm 0785XXXX1519.dkr.ecr.ap-south-1.amazonaws.com/pythoholic:1.0


Pulling Docker Image:
docker pull 0785XXXX1519.dkr.ecr.ap-south-1.amazonaws.com/pythoholic:1.0


I have used a free template for UI from :
https://startbootstrap.com/template/sb-admin

About

This application is to showcase flask with nginx and postgres

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •