A simple Flask Python CRUD app to understand how the basics of CRUD works with a database.
- Framework: Flask
- Database: Postgres
- Authentication: not applicable
- Deployment: Vercel
- Styling: Bootstrap
- Analytics: not applicable
services:
app:
image: buildwithdan/flask-crud:latest
restart: unless-stopped
ports:
- "5100:5000"
depends_on:
db:
condition: service_healthy
db:
image: postgres:latest
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- /srv/docker/flask-crud/data:/var/lib/postgresql
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
This application requires the latest python and flask to be installed.
git clone https://github.com/buildwithdan/flask-crud
cd flask-crud
flask --debug --app api.app run