Module · 5 lessons

Testing, Settings, Deployment, and Capstone

Ship it for real: write automated tests with pytest, manage configuration and secrets, deploy with uvicorn and Docker, and build the complete Task Manager API capstone.

At a glance

Level
Intermediate to Advanced
Lessons
5 lessons
Time to complete
1–2 weeks
Cost
Free forever · no sign-up

Welcome to Testing, Settings, Deployment, and Capstone — the eighth and final module of the course. You’ve built every piece of a real API: endpoints, validation, a database, authentication, structure, and streaming. This module adds the professional polish that makes an API shippable — automated tests, clean configuration, and deployment — and then brings everything together in a single capstone project.

You’ll write automated tests with pytest and TestClient so changes don’t silently break things, manage configuration and secrets with pydantic-settings (loading from environment variables, never hardcoding keys), and customize your docs and deploy with uvicorn, a Dockerfile, and a requirements.txt. Then the two-part capstone: first you’ll build the complete Task Manager API — Pydantic validation, a SQLModel database, JWT-protected routes, and a clean router layout, all in one coherent app — and then test, configure, and deploy it, finishing with a /health check and the exact files you need to run it anywhere.

Every example is real, runnable code verified end to end — including a full pytest suite that passes. Start with Lesson 1, where you’ll write your first automated tests. By the end of this module you’ll have a complete, tested, deployable API and the skills to ship any FastAPI project.

Lessons in this module

Achievement

Complete all 5 lessons to finish the Testing, Settings, Deployment, and Capstone module.

Start module