
本课程是学习 FastAPI 的指南。FastAPI 文档是最好的文档之一。本课程适合喜欢将视频作为学习媒介的学生。我们将通过最佳实践学习 FastAPI。测试驱动的开发山羊?将指导我们的开发过程。TDD 是在我们实际编写一段代码之前思考代码的方式。在本课程中,我们将学习以下核心概念:
创建 API:我们将实现以下端点:
创建作业
检索
更新
删除
列表作业
具有基本安全性的用户身份验证
密码将被散列以提供额外的安全性
我们将使用 JSON Web 令牌进行身份验证
令牌不会存储在 LocalStorage 或 Cookies
令牌将存储在 HttpOnly cookie
版本控制系统中
我们将使用 GIT 作为我们的 vcs
Github 将用于托管我们的代码
创建 Web 应用程序
我们将使用 Jinja 模板语言
我们将使用多种形式
单元测试
测试将用 Pytest 编写
每个测试周期结束后,Test 数据库都会被清理
Test Coverage
如何不写单元测试?
权限:尚未创建作业的用户将无法删除它。
我们将使用 Postgres 并使用 PgAdmin 对其进行监控。
Fastapi 为我们提供了内置的 OpenAPI 文档,我们将充分利用该文档。这些文档可帮助后端和前端开发人员轻松地相互协作。
MP4 | Video: h264, 1280×720 | Audio: AAC, 44100 Hz
Language: English | Size: 1.75 GB | Duration: 3h 27m
This course is a guide to learn FastAPI. FastAPI documentation is one of the best documentation. This course is for students who love videos as a medium to learn. We will be learning FastAPI with best practices. The Test-Driven Development goat ? will guide our development process. TDD is the way to think of the code before we actually write a piece of code. In this course we will be learning the following core concepts:
Creating APIs : We will implement the below endpoints:
Create Jobs
Retrieve
Update
Delete
List Jobs
User Authentication with basic security
Password will be hashed to provide additional security
We will use JSON Web Tokens to authenticate
Tokens won’t be stored in LocalStorage or Cookies
Token will be stored in HttpOnly cookie
Version Control System
We will use GIT as our vcs
Github will be used to host our code
Creating web apps
We will use Jinja Templating Language
We will be working with several forms
Unit Testing
Tests will be written in Pytest
After each testing cycle, the Test database will be cleaned
Test Coverage
How not to write unit tests?
Permissions : A user who has not created the job, won’t be able to delete it.
We will work with Postgres and monitor it using PgAdmin.
Fastapi provides us built-in OpenAPI docs, we will use the documentation to the fullest. The docs helps backend and frontend developers collaborate easily with each other.
原创文章,作者:steven,如若转载,请注明出处:https://rr3d.cn/15909.html