
Docker for Python Developers
1. Why Do Python Developers Use Docker?
Docker allows developers to package and run applications in an isolated environment.
For Python applications, Docker can be used to package the application and its required environment into a container.
This helps developers run the application consistently across different environments.
2. What is Docker?
Docker is a platform used to create, package, and run applications using containers.
A Docker container provides an isolated environment in which an application can run.
3. Important Docker Terminologies
Docker Image
A Docker image is a packaged template used to create containers.
Docker Container
A container is a running instance created from a Docker image.
Dockerfile
A Dockerfile contains instructions used to create a Docker image.
4. Docker Desktop
Docker Desktop provides the environment required to work with Docker on Windows.
After installation and setup, Docker commands can be used to work with images and containers.
5. Pulling a Docker Image
Docker images can be pulled from a container registry.
The tutorial demonstrates pulling and running the Hello World Docker image.
6. Docker Container Lifecycle
A container goes through different states during its lifecycle, including creation, running, and stopping.
Understanding the lifecycle helps developers manage containers effectively.
7. Container vs Image
An image is the packaged template.
A container is an instance created from that image.
In simple terms:
Image → Container
8. Python FastAPI Application
A sample FastAPI application is used to demonstrate how Docker can be applied to a Python application.
9. Creating a Dockerfile
A Dockerfile is created for the Python application.
The Dockerfile contains the instructions required to build the application image.
10. Building and Running the Docker Image
After creating the Dockerfile, a Docker image is built.
The resulting image can then be used to create and run a container containing the Python application.
Docker Workflow Covered
The complete workflow demonstrated in this lecture is:
Python Application → Dockerfile → Docker Image → Docker Container → Running Application
Key Takeaway
By the end of this lecture, you should understand the basic Docker workflow and how to containerize a Python/FastAPI application.
Redis with FastAPI
1. What is Redis?
Redis is an in-memory data store that can be used for fast data access.
In this lecture, Redis is introduced from the basics and then integrated with a FastAPI application.
2. Why Do Developers Use Redis?
Redis can be used when applications need fast access to frequently used data.
One of the practical use cases demonstrated in this lecture is caching.
3. Why is Redis Fast?
Redis stores data in memory, allowing data to be accessed quickly.
This makes Redis useful for scenarios where applications need fast data retrieval.
4. Redis Architecture
The lecture introduces the basic architecture and concepts involved in using Redis.
5. Setting Up Redis Using Docker
Redis is set up using Docker.
This provides a practical way to run Redis without installing and configuring Redis directly on the host machine.
6. Redis CLI
Redis CLI can be used to interact with a Redis server and execute Redis commands.
7. Redis Keys and Values
Redis stores information using keys and associated values.
A key can be used to identify and retrieve stored data.
8. Redis Data Types
The lecture covers several Redis data types:
Strings
Hashes
Lists
Sets
Counters
9. TTL and Key Expiration
TTL stands for Time To Live.
It allows a key to have an expiration time.
After the configured expiration period, the key can automatically expire.
10. Cache Hit and Cache Miss
Cache Hit
A cache hit occurs when the requested data is available in the cache.
Cache Miss
A cache miss occurs when the requested data is not available in the cache and the application needs to obtain the data from another source.
11. Cache Key Design
A proper cache key helps identify cached data clearly and consistently.
The lecture introduces cache key design as part of implementing caching.
12. Redis with Python
Redis is integrated with Python using an asynchronous Redis client.
This allows the Python application to communicate with Redis.
13. Redis with FastAPI
The lecture demonstrates connecting Redis with a FastAPI application.
14. Cache-Aside Pattern
The Cache-Aside pattern is used for caching.
The application first checks whether the required data exists in the cache.
If the data is available, it can be returned from Redis.
If the data is not available, the application retrieves the data and can store it in Redis for future requests.
15. Redis Health Check
A Redis health check can be used to verify whether the Redis service is available and responding.
Practical Architecture
The lecture demonstrates:
FastAPI → Redis → Caching
The practical application combines:
Python + FastAPI + Redis + Docker
Key Takeaway
By the end of this lecture, you should understand the fundamentals of Redis, common Redis data types, caching concepts, TTL, cache hits and misses, and how Redis can be integrated with FastAPI.
Google SSO Login with FastAPI
1. What is SSO?
SSO stands for Single Sign-On.
It allows users to use an existing identity provider account to sign in to an application.
In this lecture, Google is used as the identity provider.
2. Authentication vs Authorization
Authentication
Authentication verifies who the user is.
Authorization
Authorization determines what an authenticated user is allowed to access.
The lecture introduces both concepts as part of understanding the authentication flow.
3. Google Cloud OAuth Setup
The lecture demonstrates setting up Google OAuth through Google Cloud.
OAuth credentials are created so that the application can communicate with Google's authentication system.
4. OAuth Credentials
The application requires OAuth credentials to initiate the Google authentication flow.
These credentials are configured through Google Cloud.
5. Redirect URI
A redirect URI specifies where the user should be redirected after completing the Google authentication process.
The application must configure the appropriate redirect URI.
6. FastAPI OAuth Integration
The Google OAuth flow is integrated into the FastAPI application.
7. Session Middleware
Session middleware is configured as part of the Google login flow.
8. Google Login Flow
The user starts the Google login process.
The application redirects the user to Google.
After successful authentication, Google redirects the user back to the configured application endpoint.
9. User Profile Retrieval
After the Google authentication process, the application retrieves information from the user's Google profile.
10. JWT Token Generation
After the authentication flow, the application generates a JWT token.
The JWT can then be used when accessing protected APIs.
11. Protected API Endpoints
The lecture demonstrates protecting API endpoints using authentication.
Only requests containing the required authentication information can access the protected endpoints.
12. Common Errors and Fixes
The lecture also covers common configuration and implementation errors encountered during the Google SSO integration.
Key Takeaway
By the end of this lecture, you should understand the Google SSO authentication flow and how Google OAuth can be integrated with FastAPI to authenticate users and provide JWT-based access to protected APIs.
Burp Suite with FastAPI
1. Introduction to Burp Suite
Burp Suite is a tool used for web application security testing.
In this lecture, Burp Suite is demonstrated using a FastAPI application.
2. Installing Burp Suite Community Edition
The lecture demonstrates installing and setting up Burp Suite Community Edition.
3. Sample Application
A FastAPI application is used as the sample application for demonstrating security testing.
This provides a practical environment for testing application endpoints and requests.
4. Proxy
The Proxy functionality allows HTTP requests and responses to be viewed and worked with during testing.
It provides visibility into the communication between the application and the client.
5. Target
The Target functionality is used to understand and work with the application being tested.
The lecture demonstrates using Target with the FastAPI application.
6. Intruder
Burp Suite Intruder can be used to perform different types of automated attacks against requests.
The lecture demonstrates Intruder and different attack options using the sample application.
7. Sequencer
Sequencer is used to analyze the quality of tokens and other values that are intended to be unpredictable.
The lecture introduces Sequencer as one of the Burp Suite tools.
8. Decoder
Decoder can be used to decode and encode different types of data during security testing.
9. Comparer
Comparer allows two pieces of data to be compared.
This can be useful when analyzing differences between requests or responses.
10. Logger
Logger provides visibility into application traffic and activity during testing.
Practical Testing
The lecture demonstrates Burp Suite features using a FastAPI application and practical examples.
Main Tools Covered
Proxy
Target
Intruder
Sequencer
Decoder
Comparer
Logger
Key Takeaway
By the end of this lecture, you should understand the basic Burp Suite workflow and the purpose of the major Burp Suite features demonstrated in the FastAPI security-testing environment.
Build practical backend development skills by learning the tools and technologies commonly used to develop, secure, test, and run modern applications.
This course is designed for developers who already know basic programming and want to understand how real-world backend applications use tools such as Docker, Redis, Burp Suite, and Google SSO.
Instead of focusing only on theory, the course demonstrates concepts through practical examples and hands-on implementations.
What you will learn
Understand Docker and containerization fundamentals
Create and manage Docker containers and images
Write Dockerfiles and work with Docker Compose
Run backend applications using Docker
Understand Redis and why it is used in modern applications
Work with Redis data types and common commands
Integrate Redis with Python and FastAPI
Implement caching concepts using Redis
Understand authentication and authorization
Understand Google SSO and OAuth-based authentication
Integrate Google SSO into backend applications
Understand HTTP requests and responses from a security-testing perspective
Use Burp Suite for web application and API security testing
Intercept and inspect API requests
Test authentication and authorization mechanisms
Understand practical API security testing concepts
Work with multiple tools used in modern backend development
Who is this course for?
This course is suitable for:
Backend developers
Python developers
FastAPI developers
Software engineers
Students learning backend development
Developers who want practical Docker and Redis knowledge
Developers interested in API security testing
Developers who want to understand Google SSO and OAuth
Anyone who wants to learn commonly used backend development tools
Prerequisites
You should have:
Basic programming knowledge
Basic understanding of APIs and HTTP
Basic Python knowledge is recommended for the Python/FastAPI examples
A computer capable of installing Docker and the required development tools
You don't need prior experience with Docker, Redis, Burp Suite, or Google SSO. These topics are introduced step by step.
What makes this course practical?
The focus of this course is not just learning definitions. You will see how these tools are used in practical backend development scenarios.
You will work with real development concepts such as containers, caching, authentication, API requests, security testing, and application integration.
By the end of the course, you should have a better understanding of how these individual tools fit into the modern backend development ecosystem.