Test-Driven Development with Django, Django REST Framework, and Docker

Schedule

Sun Jan 29 2023 at 10:00 am to 11:00 am

Location

Online | Online, 0

Advertisement
**** This is not a Single Webinar. It is a complete Course. Ticket Purchaser will Have Access the complete Downloadable link****
About this Event

In this course, you'll learn how to set up a development environment with Docker in order to build and deploy a microservice powered by Python, Django, and Django REST Framework. You'll also apply the practices of Test-Driven Development with pytest as you develop a RESTful API.


"Code without tests is broken by design." - Jacob Kaplan-Moss


What will you learn?​

Part 1 - Foundation and Concepts

In this first part, you'll learn how to develop a RESTful API with Python, Django, Django REST Framework, and Postgres. You'll containerize Django and Postgres to run inside Docker containers and configure pytest in order to practice Test-Driven Development (TDD).


Learning Objectives​

Develop a RESTful API with Python, Django, and Django REST Framework

Practice Test-Driven Development

Test a Django app with pytest

Containerize Django and Postgres inside a Docker container

Run unit and integration tests with code coverage

Create a custom User model in Django

Implement an API with Django REST Framework Views and Serializers

Check your code for any code quality issues via a linter

Part 2 - Deployment, Testing, and Best Practices

In the second part, you'll start by deploying Django, Gunicorn, and Postgres to Heroku with Docker. You'll then continue to build out the RESTful API as you write unit and integration tests. Finally, we'll look at how to document the API with Swagger.


Learning Objectives​

Configure GitLab CI for continuous integration and deployment

Speed up a Docker-based CI build with Docker Cache

Deploy Django, Gunicorn, and Postgres to Heroku with Docker

Manage static assets with WhiteNoise

Create a production Dockerfile that uses multistage Docker builds

Parameterize test functions and mock functionality in tests with pytest

Run tests in parallel with pytest-xdist

What do you need to know?​

This is not a beginner course. It's designed for the advanced-beginner -- someone with at least six months of web development experience. Before beginning, you should have some familiarity with the following topics. Refer to these resources for more info:



Michael Herman​

Michael is a software engineer and educator who lives and works in the Denver/Boulder area. He is the co-founder/author of Real Python. Besides development, he enjoys building financial models, tech writing, content marketing, and teaching.

Advertisement

Where is it happening?

Online
Tickets

USD 22.99

Know what’s Happening Next — before everyone else does.
Coursh Crown
Host or PublisherCoursh Crown

Ask AI if this event suits you