Cookiecutter flask is a template for large projects, it’s always a great place to start and compare against https://github.com/cookiecutter-flask/cookiecutter-flask Answer from trevg_123 on reddit.com
🌐
GitHub
github.com › app-generator › sample-flask-best-practices
GitHub - app-generator/sample-flask-best-practices: Flask Best Practices for Deployment | AppSeed · GitHub
A simple Flask codebase that provides best practices for a secure production deployment.
Starred by 32 users
Forked by 10 users
Languages   Python 43.0% | HTML 31.1% | JavaScript 24.0% | Dockerfile 1.0% | CSS 0.5% | SCSS 0.3% | Procfile 0.1%
🌐
GitHub
github.com › apryor6 › flask_api_example
GitHub - apryor6/flask_api_example: A demonstration of best practices for a large Flask API project · GitHub
A demonstration of best practices for a large Flask API project - apryor6/flask_api_example
Starred by 423 users
Forked by 99 users
Languages   Python
Discussions

Any good example projects that I can use to compare my own flask site?
Cookiecutter flask is a template for large projects, it’s always a great place to start and compare against https://github.com/cookiecutter-flask/cookiecutter-flask More on reddit.com
🌐 r/flask
19
35
February 22, 2021
Best Way to manage a SaaS flask application on github
  1. Using 1 db per customer is not a good design choice. It's not a big deal when you only have 3 customers, but when you start to scale and have hundreds or thousands of them, I can guarantee you will not have much fun running all of these db server instances, performing migrations, backups etc. Apart from that it will likely affect your bills. Unless it's the customer's explicit requirement that their data must be stored in their own self-hosted db server, I would redesign the app to store client IDs in db.

  2. Your config files should be excluded from the repo. Even if it's a private repo, anything that has passwords and other sensitive information, should not be the part of your commits. It's for security reasons, but if you follow this practice, you don't need a separate branch for each client (which also would be a nightmare if you start scaling).

More on reddit.com
🌐 r/flask
4
2
January 2, 2023
Proper and standard Flask project structure
https://github.com/miguelgrinberg/flasky I had to build a new Flask project recently and Miguel's repo and also his book (well worth buying) were really helpful to building a good project structure that's easy to maintain and simple to work on and scale. Definitely recommended :) More on reddit.com
🌐 r/flask
9
39
June 2, 2021
What are the best practices and standard conventions for routes?
In previous versions of flask, you had to do @app.route(methods=...). Nowadays you can do @app.post etc. They are functionally equivalent. But I recommend you go change all the @app.route to @app.post etc. if you can. The only time you cannot is if it is handling more than one method at once. In that case I would recommend breaking it out into two functions. More on reddit.com
🌐 r/flask
2
5
March 5, 2024
🌐
GitHub
github.com › jstacoder › flask-xxl
GitHub - jstacoder/flask-xxl: A best practices approach to creating large web apps, which gives the ease and power of django to your flask app · GitHub
A best practices approach to creating large web apps, which gives the ease and power of django to your flask app - GitHub - jstacoder/flask-xxl: A best practices approach to creating large web apps, which gives the ease and power of django to ...
Starred by 390 users
Forked by 19 users
Languages   Python 59.5% | HTML 40.5%
🌐
GitHub
github.com › jonnylangefeld › flask-base-project
GitHub - jonnylangefeld/flask-base-project: Best practices of how to setup a python flask web application or api
Best practices of how to setup a python flask web application or api - jonnylangefeld/flask-base-project
Starred by 7 users
Forked by 5 users
Languages   Python 61.3% | HTML 27.1% | Shell 5.7% | Dockerfile 3.7% | JavaScript 1.7% | CSS 0.5% | Python 61.3% | HTML 27.1% | Shell 5.7% | Dockerfile 3.7% | JavaScript 1.7% | CSS 0.5%
🌐
GitHub
github.com › mjhea0 › awesome-flask
GitHub - mjhea0/awesome-flask: A curated list of awesome things related to Flask · GitHub
Explore Flask - Best practices and patterns for developing web applications with Flask.
Starred by 1.7K users
Forked by 171 users
🌐
GitHub
github.com › davislf2 › flask_sklearn
GitHub - davislf2/flask_sklearn: Best practice of Flask RESTful API with Scikit-learn for ML classification problems · GitHub
Best practice of Flask RESTful API with Scikit-learn for ML classification problems - davislf2/flask_sklearn
Author   davislf2
Find elsewhere
🌐
GitHub
github.com › JackStouffer › Flask-Foundation
GitHub - JackStouffer/Flask-Foundation: A solid foundation for your flask app · GitHub
Flask Foundation is a solid foundation for flask applications, built with best practices, that you can easily construct your website/webapp off of. Flask Foundation is different from most Flask frameworks as it does not assume anything about your development or production environments.
Starred by 1.3K users
Forked by 144 users
Languages   Python 61.2% | HTML 35.3% | Makefile 2.9%
🌐
GitHub
github.com › humiaozuzu › awesome-flask
GitHub - humiaozuzu/awesome-flask: A curated list of awesome Flask resources and plugins · GitHub
Flask-graphql - Adds GraphQL support to your Flask application · How to build a news app that never goes down and costs you practically nothing (by NPR) Building websites in Python with Flask · The Flask Mega-Tutorial · Implementing a RESTful Web API with Python & Flask ·
Starred by 12.7K users
Forked by 1.6K users
🌐
Reddit
reddit.com › r/flask › best way to manage a saas flask application on github
r/flask on Reddit: Best Way to manage a SaaS flask application on github
January 2, 2023 -

My team and i built a SaaS flask application that allows pharmacies to organize and track drugs. The application is going to be used by 3 different clients(pharmacies). These three different companies are not related to each other.

We created client IDs for each of the pharmacies. We plan to put the ids into the configuration file of the application. The application makes requests to an API that we built. That API need to identify the client ID and perform some specific actions and updates related to the pharmacies.

My question is how do I manage this on GitHub. Should we create repositories with the base code for each client and host it differently, or create branches from the main branch and host the branches with different domains? How do i also manage update?

The application uses mongodb. The plan is to provide each pharmacy a separate db. That mean the dB name will also have to be modified in the configurations.

🌐
GitHub
github.com › panubo › python-flask-example
GitHub - panubo/python-flask-example: Flask Docker packaging best practices
This is an example of how to package a Python Flask application using Panubo best practices.
Author   panubo
🌐
GitHub
github.com › app-generator › tutorial-flask › blob › main › flask-project-structure.md
tutorial-flask/flask-project-structure.md at main · app-generator/tutorial-flask
Part of Flask Tutorial: Learn how to structure your Flask project and compare the pros and cons between different options.
Author   app-generator
🌐
GitHub
github.com › flatcoke › flask-structure
GitHub - flatcoke/flask-structure: This is a large project structure for flask · GitHub
It's a sample code base for ideas discussed over https://www.digitalocean.com/community/tutorials/how-to-structure-large-flask-applications
Starred by 63 users
Forked by 25 users
Languages   Python 87.2% | HTML 9.9% | Mako 1.6% | Dockerfile 1.3%
🌐
GitHub
github.com › JoMingyu › Flask-Large-Application-Example
GitHub - JoMingyu/Flask-Large-Application-Example: This is how I structure my large Flask applications.
Flask에서 config는 class로 다루는 게 가장 좋다고 생각합니다.
Starred by 117 users
Forked by 12 users
Languages   Python 100.0% | Python 100.0%
🌐
GitHub
github.com › michaelbukachi › flask_starter
GitHub - michaelbukachi/flask_starter: A basic guide on how to organise a flask app.
Make use of Flask extensions. They save a lot of time! Here is a good place to start. should be passed in as parameters.
Starred by 6 users
Forked by 6 users
Languages   Python 85.7% | HTML 14.3% | Python 85.7% | HTML 14.3%
🌐
GitHub
gist.github.com › cuibonobo › 8696392
How to structure a large application in Flask. Taken from the Flask wiki: https://github.com/mitsuhiko/flask/wiki/Large-app-how-to · GitHub
How to structure a large application in Flask. Taken from the Flask wiki: https://github.com/mitsuhiko/flask/wiki/Large-app-how-to - Large-app-how-to.md
🌐
GitHub
github.com › tino097 › examples-flask-rest-api
GitHub - tino097/examples-flask-rest-api: :sunny: :star: Flask REST API :star:
Create REST application where we can give an example of CRUD operations and best practices for mostly used languages and frameworks · The app, called CompanyRegister should be able to: ... Flask is realy super-easy and lightweight web appliations framework.
Author   tino097
🌐
GitHub
github.com › topics › flask-structure
flask-structure · GitHub Topics · GitHub
Flask starter template to help you build a scalable and maintanable project.
🌐
GitHub
github.com › chonhan › flask_restapi_clean_architecture
GitHub - chonhan/flask_restapi_clean_architecture: A Clean Architecture Practice with Flask REST API · GitHub
A Clean Architecture Practice with Flask REST API. Contribute to chonhan/flask_restapi_clean_architecture development by creating an account on GitHub.
Starred by 146 users
Forked by 28 users
Languages   Python 99.6% | Shell 0.4%