FlaskPG
Project · template · 2024
FlaskPG is a development setup for Flask applications backed by PostgreSQL, run with Docker Compose. It is one of a family of Flask starters he wrote in spring 2024, alongside Flask Auth and 3Stack RFP.
What it sets up
- A Flask app with SQLAlchemy, whose database address comes from an environment variable. It falls back to in-memory SQLite, so it also runs without a database.
- The Werkzeug interactive debugger, switched on in development mode.
- Gunicorn as the production server, with its own configuration and start script.
- A management script for database tasks.
- A Makefile and a development environment file, so
makestarts the API and database together.
Flask-Login is wired in but left switched off, ready for an app that needs accounts.
See also
In the knowledge graph
FlaskPG and the 14 things it is linked to. Open any dot for its page, or explore it in the full graph.
As data
Everything on this page is read from triples in the knowledge graph. These are the 26 it states about FlaskPG, and 1 more its ontology implies; the console runs SPARQL over the whole graph, here in your browser.
@prefix id: <https://ask.chaipat.cc/id/> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix cj: <https://ask.chaipat.cc/ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . id:FlaskPG a cj:Project ; rdfs:label "FlaskPG" ; cj:description "Flask and PostgreSQL development setup with Docker Compose." ; cj:context id:OpenSource ; cj:repository "https://github.com/AppleBoiy/FlaskPG-dev"^^xsd:anyURI ; cj:firstCommit "2024-05-04"^^xsd:date ; cj:lastCommit "2024-05-05"^^xsd:date ; cj:commitCount 3 ; cj:kind "template" ; cj:license "MIT" ; cj:theme id:ThemeWeb , id:ThemeDevOps ; cj:uses id:Python , id:Flask , id:PostgreSQL , id:Docker , id:SQLAlchemy , id:Gunicorn , id:SQLite , id:Make ; cj:tier 3 ; cj:mentions id:FlaskAuth , id:ThreeStackRFP ; cj:article "https://ask.chaipat.cc/wiki/FlaskPG"^^xsd:anyURI ; cj:activeIn id:Y2024 ; cj:activity _:b57 .