Day 25 of 30 Days of FastAPI - Dockerizing FastAPI — The uv Way
Learn how to deploy a FastAPI application using Docker, ensuring it runs consistently across different environments.
348 words
|
2 minutes
Cover Image of the Post
Day 24 of 30 Days of FastAPI - Refactoring for Scalability with APIRouter
Learn how to refactor a monolithic FastAPI application into a modular, scalable architecture using APIRouter, separating concerns into distinct modules for better maintainability.
326 words
|
2 minutes
Cover Image of the Post
Day 23 of 30 Days of FastAPI - Environment Variables & Pydantic Settings
Learn how to manage environment variables and sensitive configuration in FastAPI using Pydantic Settings and .env files for better security and portability.
657 words
|
3 minutes
Cover Image of the Post
Day 22 of 30 Days of FastAPI - Database Isolation & Dependency Overrides
Learn how to use pytest fixtures and dependency overrides to create a test database that ensures your tests start with a clean slate every single time.
344 words
|
2 minutes
Cover Image of the Post
Day 21 of 30 Days of FastAPI - Testing Your API - Confidence Through Automation
Learn how to implement automated testing in FastAPI using pytest and TestClient to ensure code reliability and prevent regressions.
331 words
|
2 minutes
Cover Image of the Post
Day 20 of 30 Days of FastAPI - Static Files & Templates — Creating a UI for your API
Learn how to serve static files and render HTML templates with FastAPI.
236 words
|
1 minutes
Cover Image of the Post
Day 19 of 30 Days of FastAPI - Background Tasks — Stop Making Your Users Wait
Learn how to improve API performance by offloading long-running operations like email sending and image processing using FastAPI BackgroundTasks.
297 words
|
1 minutes
Cover Image of the Post
Day 18 of 30 Days of FastAPI - Identifying the Current User — From Tokens to Objects
Learn how to identify the current user in FastAPI by decoding JWT tokens and retrieving user objects from the database using dependencies.
304 words
|
2 minutes
Cover Image of the Post