FastAPI Tutorial · Course Guide
This course covers 22 chapters based on the FastAPI 0.14x Official Documentation, from zero foundation to production deployment.
What You Will Learn
| Stage | Chapters | Content |
|---|---|---|
| Beginner | 01–06 | Environment setup, routing, path/query/body params, Pydantic validation, response models |
| Intermediate | 07–13 | Forms & files, error handling, dependency injection, middleware, database integration |
| Advanced | 14–20 | OAuth2/JWT security, async concurrency, WebSocket, templates, large project structure, testing |
| Production | 21–22 | Configuration management (Pydantic Settings), lifespan, Docker & deployment |
How It Connects to Other Courses
- Chapter 20's testing chapter pairs with the pytest course;
- Chapter 18's template rendering complements frontend framework courses.
Official Reference Sources
This course is written in strict alignment with the following authoritative documentation:
| Source | Link |
|---|---|
| fastapi.tiangolo.com | https://fastapi.tiangolo.com/ |
| github.com | https://github.com/fastapi/fastapi/tree/master/docs/en/docs |
Content version baseline: FastAPI 0.141+
Prerequisites
- Python basics + familiarity with type annotations (
def f(x: int) -> str); - Recommended to complete the first 10 chapters of the pytest course — Chapter 20 references them.
👉 Start with Chapter 1.