Coming soon
FastAPI
Build fast, reliable, well-documented web APIs with modern Python: type hints and async.
- 13 modules
- 21 lessons
- Shallows to Landfall
- Free to learn
This course is being written. Its lessons will be free here, like every lesson on Mawj. The outline below is what it will teach; follow the Telegram channel to hear the day it opens.
What you'll be able to do
- Build REST APIs with FastAPI and Pydantic that are ready for real users
- Design database schemas and manage migrations with SQLModel
- Implement secure user authentication with OAuth2 and JWT tokens
- Deploy containerized FastAPI applications to cloud environments
The full syllabus
13 modules, from the Shallows down. Open any module to see its lessons.
The Shallows
Modules 1–3, 7 lessons
First steps with FastAPI, routes, parameters, and responses.
- , coming soon
1Your first FastAPI appPath operations, running with fastapi dev, and interactive documentation.Coming soon
- , coming soon
2Parameters and Pydantic modelsPath, query, and request body validation using Pydantic.Coming soon
- , coming soon
3Responses and error handlingStatus codes, response models, and HTTPException.Coming soon
Currents
Modules 4–7, 7 lessons
Dependencies, databases, modular routers, and authentication.
- , coming soon
4Dependency injectionShare logic, security, and database sessions with Depends.Coming soon
- , coming soon
5Databases with SQLModelRelational databases, sessions, and schema migrations.Coming soon
- , coming soon
6Project structure with routersOrganize large applications using APIRouter.Coming soon
- , coming soon
7Authentication and securityPassword hashing, OAuth2, and JWT tokens.Coming soon
Deep Water
Modules 8–11, 5 lessons
Async databases, automated testing, middleware, and performance.
- , coming soon
8Async and background tasksAsync database drivers and background worker tasks.Coming soon
- , coming soon
9Testing with TestClientAutomated API integration tests with pytest.Coming soon
- , coming soon
10Middleware and lifespan eventsCORS configuration, custom middleware, and startup/shutdown events.Coming soon
- , coming soon
11Performance and cachingOptimize throughput and reduce database load with caching.Coming soon
Landfall
Modules 12–13, 2 lessons
Containerization, cloud deployment, and the Capstone project.
- , coming soon
12Deploying FastAPIDocker containers, environment configurations, and production servers.Coming soon
- , coming soon
13Capstone: The Birr Ledger APITurn the Birr Ledger expense tracker into a full production API.Coming soon
Who it's for
- Python developers ready to build modern backend web services
- Full-stack developers wanting a fast, type-safe API framework
- Students transitioning from script writing to backend engineering
What you need
- Solid Python fundamentals including functions, classes, and basic type hints
- A computer with Python 3.12+ and VS Code installed