🌐
Flask
flask.palletsprojects.com β€Ί en β€Ί stable β€Ί quickstart
Quickstart β€” Flask Documentation (3.1.x)
Wrapping app.wsgi_app instead of app means that app still points at your Flask application, not at the middleware, so you can continue to use and configure app directly. Extensions are packages that help you accomplish common tasks. For example, Flask-SQLAlchemy provides SQLAlchemy support that makes it simple and easy to use with Flask.
🌐
Miguel Grinberg
blog.miguelgrinberg.com β€Ί post β€Ί the-flask-mega-tutorial-part-i-hello-world
The Flask Mega-Tutorial, Part I: Hello, World! - miguelgrinberg.com
In this example there are two decorators, which associate the URLs / and /index to this function. This means that when a web browser requests either of these two URLs, Flask is going to invoke this function and pass its return value back to the browser as a response.
🌐
Flask
flask.palletsprojects.com β€Ί en β€Ί stable β€Ί tutorial β€Ί layout
Project Layout β€” Flask Documentation (3.1.x)
/home/user/Projects/flask-tutorial β”œβ”€β”€ flaskr/ β”‚ β”œβ”€β”€ __init__.py β”‚ β”œβ”€β”€ db.py β”‚ β”œβ”€β”€ schema.sql β”‚ β”œβ”€β”€ auth.py β”‚ β”œβ”€β”€ blog.py β”‚ β”œβ”€β”€ templates/ β”‚ β”‚ β”œβ”€β”€ base.html β”‚ β”‚ β”œβ”€β”€ auth/ β”‚ β”‚ β”‚ β”œβ”€β”€ login.html β”‚ β”‚ β”‚ └── register.html β”‚ β”‚ └── blog/ β”‚ β”‚ β”œβ”€β”€ create.html β”‚ β”‚ β”œβ”€β”€ index.html β”‚ β”‚ └── update.html β”‚ └── static/ β”‚ └── style.css β”œβ”€β”€ tests/ β”‚ β”œβ”€β”€ conftest.py β”‚ β”œβ”€β”€ data.sql β”‚ β”œβ”€β”€ test_factory.py β”‚ β”œβ”€β”€ test_db.py β”‚ β”œβ”€β”€ test_auth.py β”‚ └── test_blog.py β”œβ”€β”€ .venv/ β”œβ”€β”€ pyproject.toml └── MANIFEST.in
🌐
GitHub
github.com β€Ί helloflask β€Ί flask-examples
GitHub - helloflask/flask-examples: Example applications for Flask learners. Β· GitHub
For example, if you want to run the Hello application, just execute these commands: ... The applications will always running on http://localhost:5000. Hello (/hello): Say hello with Flask.
Starred by 232 users
Forked by 159 users
Languages Β  JavaScript 50.6% | HTML 33.9% | CSS 10.5% | Python 4.7%
🌐
GeeksforGeeks
geeksforgeeks.org β€Ί python β€Ί flask-creating-first-simple-application
Flask - Creating First Simple Application - GeeksforGeeks
January 7, 2026 - Create a new Python file named app.py. This file will contain the code for your first Flask web application.
🌐
DigitalOcean
digitalocean.com β€Ί community β€Ί tutorials β€Ί how-to-make-a-web-application-using-flask-in-python-3
How To Build a Web Application Using Flask in Python 3 | DigitalOcean
2 weeks ago - In your flask_blog directory, open a file named hello.py for editing, use nano or your favorite text editor: ... This hello.py file will serve as a minimal example of how to handle HTTP requests. Inside it, you’ll import the Flask object, and create a function that returns an HTTP response.
🌐
Flask
flask.palletsprojects.com β€Ί en β€Ί stable β€Ί tutorial
Tutorial β€” Flask Documentation (3.1.x)
Once you become more comfortable with Flask, you can step out of this structure and take full advantage of Flask’s flexibility. The tutorial project is available as an example in the Flask repository, if you want to compare your project with the final product as you follow the tutorial.
🌐
Real Python
realpython.com β€Ί learning-paths β€Ί flask-by-example
Flask by Example (Learning Path) – Real Python
Learn how to create a Python Flask example web application and deploy it using Heroku.
Find elsewhere
🌐
Real Python
realpython.com β€Ί flask-project
Flask Project Structure: Build a Scalable Web App – Real Python
March 22, 2024 - In this section, you’ll prepare the development environment for your Flask project. First, you’ll create a virtual environment and install all the dependencies that you need for your project. In this section, you’ll build your project structure. You can name the root folder of your project any way you like. For example, you could name it rp_flask_board/ if your ultimate goal is to create a message board.
🌐
Real Python
realpython.com β€Ί flask-by-example-part-1-project-setup
Deploying a Python Flask Example Application Using Heroku – Real Python
March 12, 2023 - In this step-by-step tutorial, you'll learn how to create a Python Flask example web application and deploy it using Heroku.
🌐
Full Stack Python
fullstackpython.com β€Ί flask.html
Flask - Full Stack Python
Flask is considered more Pythonic than the Django web framework because in common situations the equivalent Flask web application is more explicit. Flask is also easy to get started with as a beginner because there is little boilerplate code for getting a simple app up and running. For example, here is a valid "Hello, world!" web application with Flask:
🌐
Reddit
reddit.com β€Ί r/flask β€Ί real life examples of complex applications
r/flask on Reddit: Real life examples of complex applications
October 18, 2022 -

Are there some good examples of real applications (not hello world todo/blog post or tutorials) of Flask applications, from where a new flask user could learn best practices from?

Flask doesn't force any design patterns or specific ways to do anything on me, and that leaves me wondering about what are the best ways to do something. How do I split up the routes file from all-routes-in-a-file.py to something more manageable, how do I validate input requests coming from a JS front-end, what are the best practices for doing thing X and Y, that I haven't even thought about yet.

Background information: I am writing a back-end api for a Vue frontend, there are no templates in the flask app, I am using JWT for authentication already. I think I don't need blueprints, because I don't have any templates to separate from the other things. I just don't want to bunch all my routes together in a huge file, like.. all the examples on the internet do.

I have found some open-source flask examples, but they seemed to be doing something weird, or.. were really outdated.

Or should I just write my back-end in Java and Spring, since that is used at work, and I can steal ideas and patterns from work projects? Wanted to use flask, to not have to deal with the massiveness of Spring and Java.

🌐
GeeksforGeeks
geeksforgeeks.org β€Ί python β€Ί flask-tutorial
Flask Tutorial - GeeksforGeeks
1 week ago - This section introduces Flask, compares it with Django and shows how to install it on Windows to start building web applications.
🌐
Medium
medium.com β€Ί @moraneus β€Ί python-flask-a-comprehensive-guide-from-basic-to-advanced-fbc6ec9aa5f7
Python Flask: A Comprehensive Guide from Basic to Advanced | by Moraneus | Medium
May 17, 2024 - Here’s a closer look at a simple route definition: @app.route('/welcome-astronaut') def welcome_astronaut(): return 'Welcome to the Interstellar Space Station!' In this example, @app.route('/welcome-astrunaut') tells Flask that whenever a ...
🌐
GitHub
github.com β€Ί XD-DENG β€Ί flask-example
GitHub - XD-DENG/flask-example: A minimal web app developed with Flask Β· GitHub
A minimal web app developed with Flask framework.
Starred by 118 users
Forked by 135 users
Languages Β  Python 56.1% | HTML 43.9%
🌐
Flask
flask.palletsprojects.com
Welcome to Flask β€” Flask Documentation (3.1.x)
Flask provides configuration and conventions, with sensible defaults, to get started. This section of the documentation explains the different parts of the Flask framework and how they can be used, customized, and extended.
🌐
Teclado
python-web.teclado.com β€Ί section07 β€Ί lectures β€Ί 01_hello_world_flask
'Hello, world!' with Flask | Web Developer Bootcamp with Flask and Python
Flask lets you quickly get started with building web applications in pure Python. In the following sections, you'll install Flask on your local development machine and make a simple 'Hello, world!' application.
🌐
Flask
flask.palletsprojects.com β€Ί en β€Ί stable β€Ί tutorial β€Ί factory
Application Setup β€” Flask Documentation (3.1.x)
The most straightforward way to create a Flask application is to create a global Flask instance directly at the top of your code, like how the β€œHello, World!” example did on the previous page.
🌐
Tech with Tim
techwithtim.net β€Ί tutorials β€Ί flask β€Ί a-basic-website
Flask, Creating A Basic Website
Have a look at the example above. This will allows us to route any URL to this function, pass the name variable to our function and display "Hello name!" on our web page. Let's give it a try. The last thing to mention is how to redirect users to other pages from within our python code. To do this we will start by importing some more functions from Flask...