Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hrimov/flask-template

Flask project template with several design pattern options
https://github.com/hrimov/flask-template

flask sqlalchemy template

Last synced: about 2 months ago
JSON representation

Flask project template with several design pattern options

Awesome Lists containing this project

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