Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hrimov/flask-template
Flask project template with several architectural pattern options
https://github.com/hrimov/flask-template
flask sqlalchemy template
Last synced: about 2 months ago
JSON representation
Flask project template with several architectural pattern options
- Host: GitHub
- URL: https://github.com/hrimov/flask-template
- Owner: hrimov
- Created: 2023-11-12T08:26:04.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-28T16:52:03.000Z (9 months ago)
- Last Synced: 2024-08-14T07:08:01.558Z (5 months ago)
- Topics: flask, sqlalchemy, template
- Language: Python
- Homepage:
- Size: 53.7 KB
- Stars: 15
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - hrimov/flask-template - Flask project template with several architectural pattern options (Python)
README
# Flask template
This repo will contain several project structure templates
for Flask:- MVC (**current branch**)
- [Layered](https://github.com/hrimov/flask-template/tree/structure/layered)# Installation
Just clone the repo and run `poetry install`.
For the checking example route at `localhost:5000/users/`
you should have running Postgres with applied migration and simply run `python -m app`.# Advantages
- No `flask_sqlalchemy`, which is using globals
- No applications globals, e.g. `Flask` application, session and etc# Disadvantages
- MVC is not really scalable, there will be one "very big" component