Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Coursera

Intermediate Flask: APIs & User Authentication

Packt via Coursera

Overview

Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
This course features Coursera Coach! A smarter way to learn with interactive, real-time conversations that help you test your knowledge, challenge assumptions, and deepen your understanding as you progress through the course. Take your Flask skills to the next level with this course focused on APIs and user authentication. You will gain hands-on experience building advanced Flask applications by creating member APIs, integrating Flask-SQLAlchemy for database management, and securing your API endpoints with authentication. You'll also learn how to deploy your app to platforms like Python Anywhere for public access. By the end, you'll be able to build robust, scalable web applications that securely manage user data and handle various requests. This course delves deep into Flask-SQLAlchemy, exploring database creation, data manipulation, and the setup of complex relationships, including one-to-many and many-to-many. You'll also focus on building APIs that allow users to create, retrieve, update, and delete data. With Flask-WTF and Flask-Bootstrap, you'll handle dynamic forms and enhance the front-end design of your application, making it more user-friendly. This is a project-based learning course, and each section introduces you to new challenges that build on each other. Ideal for developers with foundational Flask knowledge, this course is perfect for those looking to develop more complex applications and secure them with user authentication features. The course is designed for intermediate learners who already have some Python and Flask experience, but beginners with a solid understanding of Python may also benefit. By the end of the course, you will be able to build fully functional APIs, handle user authentication, and manage databases effectively in Flask applications. By the end of the course, you will be able to develop and deploy APIs with Flask, implement advanced authentication techniques, manage databases using Flask-SQLAlchemy, and integrate dynamic forms in your applications.

Syllabus

  • Question & Answer App
    • In this module, we will explore the core features and functionalities of building a question and answer app with Flask. You will learn how to manage user authentication, create and answer questions, and dynamically display user-generated content. The section also covers securing routes and deploying your app to Heroku for online access.
  • Member API
    • In this module, we will build a Member API to handle CRUD operations for managing user data. You will learn how to secure your API with authentication and deploy it to Python Anywhere for public access. The section also demonstrates how to test your API using Postman and interact with the database efficiently.
  • Flask SQLAlchemy
    • In this module, we will explore how to use Flask-SQLAlchemy to manage your app’s database. You will learn how to define models, perform CRUD operations, and write complex queries to retrieve and manipulate data. This section also covers managing one-to-many and many-to-many relationships for effective data modeling.
  • Flask SQLAlchemy By Example
    • In this module, we will dive deeper into Flask-SQLAlchemy through practical examples. You will learn how to define database relationships, insert and update data, and run optimized queries. The section also focuses on real-world use cases such as querying customer orders, revenue, and other key metrics.
  • Flask WTF
    • In this module, we will cover how to create and handle forms using Flask-WTF. You will learn how to validate user input, manage form fields, and use custom validation logic to enhance user experience. The section also demonstrates integrating forms with other Flask extensions for more complex workflows.
  • Flask Bootstrap
    • In this module, we will explore how to use Flask-Bootstrap to build attractive and responsive web pages. You will learn how to integrate Flask-Bootstrap components into your templates and optimize UI elements for better user interaction. The section also covers creating flexible templates and layouts using Flask-Bootstrap’s built-in blocks.
  • Flask Mail
    • In this module, we will cover how to send and manage emails within your Flask app using Flask-Mail. You will learn how to configure the email server, send emails to multiple recipients, and add attachments. The section also demonstrates how to integrate Gmail and handle advanced email parameters for robust communication.
  • Flask Migrate
    • In this module, we will explore Flask-Migrate to manage database schema changes and migrations in your Flask app. You will learn how to apply upgrades and downgrades, work with different database systems, and manually edit migration files. The section also demonstrates managing database versions effectively with Flask-Migrate.
  • Flask Uploads
    • In this module, we will cover how to handle file uploads in Flask using the Flask-Uploads extension. You will learn how to create upload forms, restrict file types, and manage uploaded files within your application. The section also explores best practices for organizing and storing files securely in Flask.
  • Flask Login
    • In this module, we will explore how to use Flask-Login to manage user authentication in your Flask applications. You will learn how to create login forms, protect routes, and implement session management features such as "Remember Me." The section also demonstrates how to handle login success, failures, and automatic session expiration for enhanced security.

Taught by

Packt - Course Instructors

Reviews

Start your review of Intermediate Flask: APIs & User Authentication

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.