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 |
|---|---|
| 01 | What Is FastAPI |
| 02 | FastAPI Environment and Installation |
| 03 | Your First FastAPI Application |
Parameters, Pydantic, and Responses (04–06)
| # | Chapter |
|---|---|
| 04 | Path, Query, and Request Body |
| 05 | Pydantic Models and Validation |
| 06 | Response Models and Status Codes |
Structure, Dependencies, and Middleware (07–11)
| # | Chapter |
|---|---|
| 07 | APIRouter and Project Structure |
| 08 | Dependency Injection |
| 09 | Settings and Configuration |
| 10 | Middleware and CORS |
| 11 | Error Handling and Logging |
Database and Migrations (12–13)
| # | Chapter |
|---|---|
| 12 | SQLAlchemy With FastAPI |
| 13 | Alembic Database Migrations |
Authentication and Authorization (14–16)
| # | Chapter |
|---|---|
| 14 | Authentication and JWT |
| 15 | Permissions and Authorization |
| 16 | File Uploads and Static Files |
Optional Features and Testing (17–21)
| # | Chapter |
|---|---|
| 17 | Background Tasks and WebSockets (Optional) |
| 18 | Testing FastAPI Applications |
| 19 | OpenAPI and API Documentation |
| 20 | Async Database and Concurrency (Optional) |
| 21 | Redis Caching With FastAPI (Optional) |
Security, Deploy, and CI (22–24)
| # | Chapter |
|---|---|
| 22 | FastAPI Security Best Practices |
| 23 | Deploying With Uvicorn and Nginx |
| 24 | FastAPI Docker and CI |
Projects (25–28)
| # | Chapter |
|---|---|
| 25 | Project: REST CRUD API |
| 26 | Project: Todo API With Authentication |
| 27 | Project: Inference and Stats API |
| 28 | Project: Production Deployment |
Troubleshooting and Resources (29–31)
| # | Chapter |
|---|---|
| 29 | FastAPI Troubleshooting |
| 30 | FastAPI Resources and Book Recommendations |
| 31 | FastAPI Chapter Index (this page) |
Related Tracks
| Track | Why |
|---|---|
| Python | Language and tooling |
| Flask | WSGI, templates, compare stacks |
| MySQL | SQL and schema design |
| Redis | Caching and ops |
| Git | Version control and CI |
| Linux | Server deployment |
| Nginx | Reverse proxy and TLS |
| MongoDB | Document CRUD with FastAPI + PyMongo |
| Django | Full-stack compare (ORM vs documents) |
| Vue | SPA 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 17 → Vue 24 + CRUD 25 or JWT 14 + Vue 25
MongoDB API: Python PyMongo basics → FastAPI integration → Mongo + 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?
Category logo?
/category-logos/fastapi.png in category_meta_info.json.