Ultimate Guide to FastAPI and Backend Development

所在平台: Udemy

课程主页: https://www.udemy.com/course/fastapi-guide/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:终极FastAPI与后端开发指南 课程概述: 在这一课程中,您将学习如何利用Python和FastAPI的强大功能来构建快速、高效的API。课程将带您从理论走向实践,亲手构建一个真实的交付管理系统的完整后端API。在学习过程中,您将掌握请求/响应周期、数据建模、数据库、异步编程和依赖注入等基本后端概念,同时利用FastAPI内置的功能如异步速度、自动数据验证、OpenAPI支持和卓越的开发效率。 Python基础: 虽然需要具备基本的Python知识,课程中仍会涵盖类型提示、装饰器函数、上下文管理器、异步编程等核心语言概念。 SQL数据库: 从基本概念开始学习数据库和SQL,了解结构化数据库的重要性,定义表格并编写SQL查询。之后,我们将手动将SQLite数据库与FastAPI应用程序集成,并使用SQLModel工具定义数据库表架构,并通过FastAPI强大的依赖注入功能,为API端点提供数据库会话。在掌握基本知识后,我们将深入学习异步数据库(PostgreSQL)、使用alembic迁移管理架构变化、一对多和多对多SQL关系的定义及模型关联。 用户身份验证: 学习FastAPI内置的OAuth2方案,实现安全的用户身份验证,处理用户注册、邮箱验证、登录、JWT访问控制、密码重置和用户登出等功能。 邮件和短信通知: 在我们的交付管理系统中,我们将发送邮件更新和短信通知,包括订单确认、发货状态更新和发送验证码/一次性密码(OTP)等。 API测试: 了解pytest测试框架的基础知识,编写和运行简单测试,使用测试夹具管理测试状态。我们将为API端点编写测试,并涵盖设置测试数据库、覆写依赖项、测试函数中的身份验证以及使用schemathesis自动化测试等概念。 前端开发: 作为附加内容,我们还将学习使用React JS进行前端开发,涵盖组件、状态管理、hooks、上下文提供者和路由等基础知识。使用现代工具如Vite、Axios、React Router、Shadcn UI和Tanstack React Query。 Docker: 课程将介绍行业标准的应用打包工具Docker,学习容器化的基本概念,并利用Docker Compose无缝运行我们的API服务器、PostgreSQL数据库、Redis和Celery后台工作。 如果您是一名希望创建快速、可靠和现代Web API的Python开发者,并渴望深入理解和构建后端,那么本课程将是您的完美起点。立即加入我们,开始构建您的项目吧!

课程评论(0条)

课程详情

Unlock the Power of APIs with Python and FastAPI!Ready to transform your Python skills into building blazing-fast, production-ready APIs? This hands-on course is your definitive guide to crafting high-performance APIs using FastAPI and Python.Go beyond theory and build a complete backend API for a real-world Delivery Management System. You'll master essential backend concepts like the request/response cycle, data modeling, databases, asynchronous programming, and dependency injection - all while leveraging the power of FastAPI's built-in features: asynchronous speed, automatic data validation, OpenAPI support, and exceptional developer productivity.PythonEven though having a basic understanding of python is required, core language concepts like type hinting, decorator functions, context managers, async programming and others will still be covered.SQL DatabaseWe will cover databases and SQL from the basics. Especially if you're a beginner, we will first learn the need for structured databases, what SQL is, how to define tables and write SQL queries.Then we will integrate a SQLite database manually with our FastAPI application and then leverage modern tools like SQLModel to define database table schema and FastAPI's powerful dependency injection to provide database session to API endpoints.After covering the essentials, we will move onto advanced concepts like asynchronous database (PostgreSQL), manage schema changes with alembic migrations, define one-to-many and many-to-many SQL relationships and link models.User AuthenticationFastAPI has built-in support for OAuth2 Scheme. Implement secure user authentication with OAuth2 Password Flow and handle user signups, email verification of registered users, login, control access to endpoints with JWT, allow password resets and logout users.Email and SMS NotificationsIn our delivery management system, we will send email updates and sms to recipients on shipment updates. Like sending tracking links with email on order placed, shipment status updates, and sending verification codes or OTP as sms to recieve shipments.API TestingLearn the basics of the pytest - testing framework. Write and run simple tests, and use fixtures to manage test state. Then, write test for API endpoints with FastAPI's built-in test client.We will cover required concepts when testing APIs like setting up test databases, overriding dependencies, authentication in test functions and automate testing with schemathesis.Frontend?As a bonus, we will also cover frontend web development with React JS. Covering the essentials like components, state management, hooks, context providers and routing. Using modern and meme proof tools like Vite, Axios, React Router, Shadcn UI, and Tanstack React Query.DockerLearn the industry standard tool for packaging applications. We will cover the basics of docker and the essential concepts of containerisation. And run our API Server, PostgreSQL database, Redis and Celery background worker seamlessly with Docker Compose.If you're a Python developer looking to create fast, reliable, and modern web APIs, and if you're eager to understand and build the backend yourself, then this course is your perfect starting point.Join us in the first lesson and start building today!

课程标签

0人关注该课程

主题相关的课程