FastAPI Tutorial with Demo Project

Chapter 1 — Your First FastAPI Application: From Zero to a Real API

Chapter 2 — From URLs to Real Data: Routes, Path Parameters & Query Parameters

Chapter 3 — From Reading Data to Creating Data: Request Bodies & Pydantic Models

Chapter 4 — Request Bodies & Data Validation: Turning FastAPI into a Real API

Chapter 5: Response Model, Data Validation & Hiding Sensitive Data in FastAPI

Chapter 6: Status Code with Custom Responses and Error Handling in FastAPI

Chapter 7: Exception Handling in FastAPI

Chapter 8: Connecting FastAPI to a Database — SQLAlchemy Models, Sessions & Relationships

Chapter 9: Completing CRUD — Update and Delete (PUT, PATCH, DELETE) in FastAPI

Chapter 10: PostgreSQL DB Setup and FastAPI with CRUD API

Chapter 11: Sync vs Async — Converting Your App to Asynchronous in FastAPI

Chapter 12: Routers — Organizing Routes into Modules with APIRouter

Chapter 13: Frontend Forms — Connecting JavaScript to Your API

Chapter 14: Authentication — Registration and Login with JWT

Chapter 15: JWT Authentication + Token-Based Auth + Login API

Chapter 16: OAuth2 with JWT Authentication | Secure Routes + Password Hashing

Chapter 17: Environment Variables , .env Setup + python-dotenv

Chapter 18: Authorization — Protecting Routes and Verifying Current User

Chapter 19: File Uploads — Image Processing, Validation, and Storage

Chapter 20: Pagination — Loading More Data with Query Parameters

Chapter 21: Password Reset — Email, Tokens, and Background Tasks

Scroll to Top