
Explore the Flask framework by building APIs and web apps, and learn what Flask is. Master routing, URL building, templates, static files, request objects, cookies, sessions, and deployment.
Flask is a lightweight Python web framework for building web apps and APIs with modular libraries. Learn basics to advanced concepts and practical data passing, used by Uber and Pinterest.
Set up a Python Flask environment by creating and activating a virtual environment on Windows and installing Flask. Prepare a project folder for a clean development workflow.
Create a basic flask application by activating a virtual environment, installing Flask, importing Flask, and defining a hello world route using a route decorator that runs locally.
Learn how routing in Flask defines routes to navigate pages, run the server, and render outputs like hello world, with examples of defining, saving, and testing routes.
Learn to build dynamic URLs in flask by defining routes with parameters, handling admin and guest paths, and using conditional logic to personalize responses.
Learn to use static files in a Flask app by creating a static folder, linking a JavaScript file in index.html, and triggering a hello world alert from a button.
Learn to use SQLite with Python and Flask to create a students table with name, address, city, and pin, insert records via a form, and display saved students.
Explore how to use templates in Flask by creating a templates folder, rendering a hello HTML file, and passing a user variable through a route function.
Software is everywhere. We interact with it in our daily life activities knowingly or unknowingly. Each time when you use an app like Instagram, send an instant message, or check the stock prices on your phone, you're using an API. The world still needs more software to make our life easier. But creating great software is hard for everyone and yet developers need to master more than one skill.
This course will guide you in creating simple, intermediate, and advanced REST APIs including authentication, deployments, databases, and much more.
We'll start with a Python refresher that will take you from the very basics to some of the most advanced features of Python—that's all the Python you need to complete the course.
Using Flask and popular extensions Flask-Smorest, Flask-JWT-Extended, and Flask-SQLAlchemy we will dive right into developing complete, solid, production-ready REST APIs.
We will also look into essential technologies like Git and database migrations with Alembic.
You'll be able to...
Create resource-based, production-ready REST APIs using Python, Flask, and popular Flask extensions;
Handle secure user registration and authentication with Flask.
Using SQLAlchemy and Flask-SQLAlchemy to easily and efficiently store resources to a database; and
Understand the complex intricacies of deployments of Flask REST APIs.
Use Docker to simplify running and deploying your REST APIs.
But what is a REST API anyway?
A REST API is an application that accepts data from clients and returns data back. For example, a REST API could accept text data from the client, such as a username and password, and return whether that is a valid user in the database.
When developing REST APIs, our clients are usually web apps or mobile apps. That's in contrast to when we make websites, where the clients are usually the users themselves.
Together we'll develop a REST API that not only allows clients to authenticate but also to store and retrieve any data you want from a database. Learning this will help you develop any REST API that you need for your own projects!
All the best. Keep Learning and keep moving ahead.
Who this course is for:
Developers curious about microservices and API
Developers curious to learn developing web apps using Flask.
Full stack developer, backend developer, frontend developer, data scientist, machine learning engineer
If you have any doubt your queries will be solved within 24 hours.