Skip to content
IntermediatePremium · 2,000 credits

Build a Production REST API: From Zero to Deployed with FastAPI

Build a complete, production-ready REST API from scratch. You'll create TaskFlow — a task management API with JWT authentication and role-based access control, an async PostgreSQL layer with reviewable migrations, Redis caching, a real test suite, and a containerised deployment with CI. Built on FastAPI, SQLAlchemy 2.0 and Pydantic v2. This is a hands-on project course — every module is a phase of building your API.

200 min5 lessons5 modulesCareer

What you'll learn

  • Build a complete async REST API with FastAPI, SQLAlchemy 2.0 and PostgreSQL
  • Implement JWT authentication with role-based access control, and explain what JWT cannot revoke
  • Design production database schemas and write migrations you can safely roll back
  • Write an async test suite with pytest that actually runs, and diagnose it when it does not
  • Containerise and deploy the API with Compose and CI, with the database unreachable from outside

What's included

Video Lessons
—
Interactive Exercises
Included
Charts & Infographics
—
Quizzes
5
Certificate
Included

Course Content

  1. Phase 1: Project Setup & Architecture

    1 lesson · 3 min
  2. Phase 2: Database Models & Migrations

    1 lesson · 3 min
    • Locked until you enrollProduction Database Design with SQLAlchemy 2.03 min
    • Quiz: Module 2: Database Models & Migrations Quiz
    • Lab: Build TaskFlow Database Models & Migrations99 free attempts35 min
  3. Phase 3: API Endpoints & Authentication

    1 lesson · 3 min
    • Locked until you enrollRESTful Design & JWT Authentication3 min
    • Quiz: Module 3 Quiz: API Endpoints & Authentication
    • Lab: Build API Endpoints & Authentication99 free attempts45 min
  4. Phase 4: Testing & Production Hardening

    1 lesson · 3 min
    • Locked until you enrollTesting & Production Hardening3 min
    • Quiz: Module 4 Quiz: Testing & Production Hardening
    • Lab: Test & Harden TaskFlow for Production99 free attempts40 min
  5. Phase 5: Deploy & Ship

    1 lesson · 3 min
    • Locked until you enrollProduction Deployment3 min
    • Quiz: Module 5: Deploy & Ship Quiz
    • Lab: Dockerize & Deploy TaskFlow99 free attempts35 min