Loading video player…

Creating a Scalable Flask Web Application From Scratch (Overview)

Flask is a powerful and flexible micro web framework for Python, ideal for both small and large web projects. It provides a straightforward way to get a web application up and running, with all the features that you need to get started.

Over the course of this video course, you’ll explore the process of creating a boilerplate for a Flask web project. This boilerplate will serve as a great starting point for any scalable Flask web app that you wish to develop in the future, from basic web pages to complex web applications.

In this video course, you’ll learn how to:

  • Set up a Flask project
  • Create a "Hello, World!" Flask app
  • Add multiple pages with blueprints
  • Leverage Jinja templates
  • Store static files
Download

Course Slides (.pdf)

6.1 MB
Download

Sample Code (.zip)

3.1 KB

00:00 Welcome to this tutorial on building a scalable Flask web project. This course is designed to give you a high-level overview of how to set up the basic structure for a scalable Flask application.

00:11 The focus is not on building a specific project or actually scaling the app, but on understanding how to organize and structure your code effectively for growth and maintainability.

00:22 You will be building a simple example app skeleton. This example is intentionally kept minimal to help you concentrate on the project structure, not on functionality or complex code.

00:32 To make it easier for you to follow along, I’ll occasionally copy and paste longer code snippets, which you are encouraged to do as well. All the codes are provided in the associated tutorial for your convenience. Ready to dive in?

00:47 You will build a simple message board app. While the app itself won’t have much functionality, just some internal links and minimal styling, it’s the structure that matters the most here.

00:57 This course is all about providing you with a high-level overview of how to set up the basic structure of a scalable Flask app. The app will include basic navigation between a homepage and an about page with internal links that demonstrate how routing works in Flask.

01:14 By the end of this tutorial, you will be equipped with the skills to build a Flask project from the ground up. You will walk through every step from project setup to running your first Flask application.

01:25 You will be writing Python code and seeing the results immediately. You will learn to structure your Flask project for scalability. As your project grows, you will need a solid foundation.

01:35 You will cover the best practices for organizing your code, including transforming it into a package and using the application factory pattern. This will make your project easier to maintain and expand in the future.

01:48 You will understand the flow of requests and responses. You will delve into how Flask handles incoming user requests, and how requests are routed. You will learn how to manage your application using helpful tools and techniques that streamline the development process.

02:03 This will make building and expanding your Flask applications much easier and more efficient. Finally, you will learn how to improve the user experience and UI.

02:13 You will look at styling with CSS, structuring your project for static files, and using templates to create a visually appealing and user-friendly interface.

02:23 Now let’s go ahead and create your first Flask application.

Become a Member to join the conversation.