FastAPI Chapter Index

Introduction

This index lists all 31 chapters in the Hello Code FastAPI track, grouped by topic. Use it to jump to a lesson or compare coverage with frontend/gen_article_plan/fastapi.md.

Prerequisites

  • None—this page is a map, not a lesson

Getting Started (01–03)

#Chapter
01What Is FastAPI
02FastAPI Environment and Installation
03Your First FastAPI Application

Parameters, Pydantic, and Responses (04–06)

#Chapter
04Path, Query, and Request Body
05Pydantic Models and Validation
06Response Models and Status Codes

Structure, Dependencies, and Middleware (07–11)

#Chapter
07APIRouter and Project Structure
08Dependency Injection
09Settings and Configuration
10Middleware and CORS
11Error Handling and Logging

Database and Migrations (12–13)

#Chapter
12SQLAlchemy With FastAPI
13Alembic Database Migrations

Authentication and Authorization (14–16)

#Chapter
14Authentication and JWT
15Permissions and Authorization
16File Uploads and Static Files

Optional Features and Testing (17–21)

#Chapter
17Background Tasks and WebSockets (Optional)
18Testing FastAPI Applications
19OpenAPI and API Documentation
20Async Database and Concurrency (Optional)
21Redis Caching With FastAPI (Optional)

Security, Deploy, and CI (22–24)

#Chapter
22FastAPI Security Best Practices
23Deploying With Uvicorn and Nginx
24FastAPI Docker and CI

Projects (25–28)

#Chapter
25Project: REST CRUD API
26Project: Todo API With Authentication
27Project: Inference and Stats API
28Project: Production Deployment

Troubleshooting and Resources (29–31)

#Chapter
29FastAPI Troubleshooting
30FastAPI Resources and Book Recommendations
31FastAPI Chapter Index (this page)
TrackWhy
PythonLanguage and tooling
FlaskWSGI, templates, compare stacks
MySQLSQL and schema design
RedisCaching and ops
GitVersion control and CI
LinuxServer deployment
NginxReverse proxy and TLS
MongoDBDocument CRUD with FastAPI + PyMongo
DjangoFull-stack compare (ORM vs documents)
VueSPA client for REST/JWT APIs (17, 24–25)

Suggested Learning Paths

API fundamentals: 01 → 11

CRUD API: 01 → 13, 18 → 19, project 25

Auth API: 01 → 16, 26

ML / compute wrapper: 01 → 06, 17, 27

Production: 22 → 24, 28, plus Nginx

Full-stack (Vue SPA + API): Vue 17Vue 24 + CRUD 25 or JWT 14 + Vue 25

MongoDB API: Python PyMongo basicsFastAPI integrationMongo + Redis deploy

Skip optional: 17, 20, 21 until needed

FAQ

Where is the planning document?

Chinese outline: frontend/gen_article_plan/fastapi.md.

Suggested reading order?

Follow 01→31, or 01→13 then jump to projects 25–27.

Flask vs FastAPI on this site?

Flask for server-rendered web; FastAPI for typed JSON APIs.

Report a typo?

Git fork workflow.

/category-logos/fastapi.png in category_meta_info.json.