Skip to content

iniTwakkie/flask-crud

Repository files navigation

Flask-crud app

Try Out Development Containers: Python

Open in Dev Containers

visitors

A simple Flask Python CRUD app to understand how the basics of CRUD works with a database.

Stack

Running Locally

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

About

✨ Flask CRUD app built with Flask, Bootstrap, Postgres and Docker (self-hosted)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •