Skip to main content
CF

Build a Backend REST API with Python & Django - Advanced

7h 57m 59s
English
Paid

Welcome to the advanced course on building a Backend REST API using Python, Django (2.0), Django REST Framework (3.9), Docker, Travis CI, Postgres, and Test Driven Development! Whether you’re a freelance programmer, tech entrepreneur, or just starting out, this course will lay the foundation of your knowledge base and equip you with tools to advance your skills using some of the most in-demand programming languages today.

Why Learn to Build APIs?

APIs are the unsung heroes behind the technologies that we all love and use religiously. One of the most critical components for any tech-based business is an API. Knowing how to create an API from start to finish is a vital developer skill. A successful app cannot be built without a backend REST API!

Course Overview

In this course, I'll show you how to build an advanced API capable of:

  • Creating and updating user profiles
  • Changing passwords
  • Creating objects and uploading images
  • Filtering and searching objects

The project you'll build alongside me is a recipe API that allows you to upload and store your favorite recipes from photos and the web. You'll create objects with titles, price points, cooking times, ingredients, and tags like "comfort food", "vegan", or "dessert". Consider it your virtual recipe box!

What You'll Achieve

By the end of this course, you will have built a fully functioning REST API that can handle:

  • User authentication
  • Creating objects
  • Filtering and sorting objects
  • Uploading and viewing images

Skills and Tools You'll Master

  • Setting up a project with Docker and Docker-Compose
  • Configuring Travis CI to automatically run linting and unit tests
  • Writing unit tests using the Django Test Framework
  • Applying best practices, including Test Driven Development
  • Handling media file uploads with Django
  • Customizing the Django admin interface
  • Configuring a Postgres database

This course focuses on teaching you how to create an advanced API from scratch using best practices and Test Driven Development.

Is This Course Right for You?

This course is NOT for you if:

  • You're looking for a course to build an API, a front-end, and deployment
  • You want a course to build 10 different apps
  • You're seeking to learn various technologies and approaches to app development in general

This is a hands-on course with some theory and many opportunities to test your knowledge. The content is challenging but rewarding. Ready for it? Let’s dive in!

Please Note: You cannot run Docker on Windows 10 Home edition because it requires Windows 10 Pro or Enterprise for Hyper-V virtualization. Two options are covered in Lecture 6, which is free to preview before purchasing the course.

Course Prerequisites

Requirements:
  • Basic programming knowledge and experience building simple applications
  • Familiarity with Django
  • Comfort in using command line tools (Terminal/Command Prompt)
  • A macOS, Linux, or Windows machine capable of running Docker (excludes Windows 10 Home)
  • Positive attitude and willingness to learn!

Intended Audience

Who this course is for:
  • Intermediate programmers with some understanding of Python wanting to skill up
  • Developers proficient in other languages intending to add Python to their toolkit

Key Learning Objectives

What you'll learn:
  • Setting up a local development server with Docker
  • Writing a Python project using Test Driven Development
  • Building a REST API with advanced features like uploading and viewing images
  • Creating a backend usable as a base for future projects or MVPs
  • Hands-on experience applying best practice principles such as PEP-8 and unit tests
  • Configuring Travis CI to automate code checks

About the Author: Udemy

Udemy thumbnail

Udemy is the largest open marketplace for online courses on the internet. Founded in 2010 by Eren Bali, Oktay Caglar, and Gagan Biyani and headquartered in San Francisco, the company went public on the Nasdaq in 2021 under the ticker UDMY. The platform hosts well over two hundred thousand courses across software development, IT and cloud, data science, design, business, marketing, and creative skills, taught by tens of thousands of independent instructors. Roughly seventy million learners use it worldwide, and the corporate arm — Udemy Business — supplies a curated subset of that catalog to enterprise customers.

Because Udemy is a marketplace rather than a single editorial publisher, the catalog is uneven by design. The strongest material lives in the long-form, project-based courses authored by working engineers — full-stack JavaScript, React, Node.js, Python data science, AWS, Docker and Kubernetes, mobile development with Flutter and React Native, and cloud certification preparation. The CourseFlix listing under this source is the slice of that catalog that has been mirrored here for offline-friendly viewing, organized by topic and updated as new releases land. Pricing on Udemy itself swings dramatically with the site's near-permanent sales, which is why the platform is best treated as a deep reference catalog: pick instructors with strong reviews and a track record of updating their material rather than buying on the headline price alone.

Watch Online 72 lessons

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 72 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing
0:00
/
#1: Welcome to Build a Backend API with Django REST Framework - Advanced
All Course Lessons (72)
#Lesson TitleDurationAccess
1
Welcome to Build a Backend API with Django REST Framework - Advanced Demo
02:21
2
Intro to the course
02:25
3
Course structure
01:04
4
How to get the most out of this course
00:55
5
How to get help
01:26
6
Python
00:49
7
Django
00:55
8
Django REST Framework
00:47
9
Docker
00:36
10
Travis-CI
00:44
11
Postgres
00:19
12
What is test driven development?
04:01
13
Setup new GitHub project
02:51
14
Add Dockerfile
09:57
15
Configure Docker Compose
05:23
16
Create Django project
02:57
17
Enable Travis-CI for project
01:42
18
Create Travis-CI configuration file
07:16
19
Writing a simple unit test
05:48
20
Writing a unit test with TDD
05:09
21
Create core app
02:53
22
Add tests for custom user model
05:42
23
Implement custom user model
10:24
24
Normalize email addresses
03:26
25
Add validation for email field
02:37
26
Add support for creating superusers
05:21
27
Add tests for listing users in Django admin
09:31
28
Modify Django admin to list our custom user model
02:28
29
Modify Django admin to support changing user model
07:49
30
Modify Django admin to support creating users
04:57
31
Add postgres to docker compose
05:26
32
Add postgres support to Dockerfile
05:44
33
Configure database in Django
02:53
34
Mocking with unittests
01:31
35
Add tests for wait_for_db command
11:44
36
Add wait_for_db command
07:32
37
Make docker compose wait for db
02:52
38
Test in browser
03:02
39
Create users app
03:30
40
Add tests for create user API
16:44
41
Add create user API
13:53
42
Add tests for creating a new token
10:40
43
Add create token API
13:54
44
Add tests for manage user endpoint
11:51
45
Add manage user endpoint
11:25
46
Create recipe app
02:16
47
Add tag model
08:10
48
Add tests for listing tags
12:09
49
Add feature to list tags
12:13
50
Add create tags feature
07:08
51
Add ingredient model
04:09
52
Add tests for listing ingredients
10:30
53
Implement feature for list ingredients
05:05
54
Implement feature for creating ingredients
07:39
55
Re-factor tags and ingredients viewsets
07:05
56
Add recipe model
12:51
57
Add tests for listing recipes
15:17
58
Implement feature for listing recipes
08:39
59
Add tests for retrieving recipe detail
09:13
60
Implement feature for retrieving recipe detail
07:07
61
Add tests for creating recipes
11:27
62
Implement feature for creating recipes
04:23
63
Add tests for updating recipes
09:43
64
Add Pillow requirement
12:16
65
Modify recipe model
11:54
66
Add tests for uploading image to recipe
13:30
67
Add feature to upload image
11:18
68
Add tests for filtering recipes
08:58
69
Implement feature to filter recipes
09:20
70
Add tests for filtering tags and ingredients
13:00
71
Implement feature for filtering tags and ingredients
06:32
72
What was covered in this course
00:53
Unlock unlimited learning

Get instant access to all 71 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription

Related courses

Frequently asked questions

What are the prerequisites for enrolling in this course?
This course assumes a working knowledge of Python and a basic understanding of Django. Familiarity with Docker, Travis CI, and Postgres is beneficial but not mandatory. The course will cover these tools, but having prior exposure will help you follow along more easily with the advanced topics.
What specific project will I build during the course?
You will build a recipe API that allows users to upload and store recipes from photos and the web. This API includes functionalities like creating user profiles, managing user authentication, creating and updating objects, and filtering and searching for recipes. The project serves as a virtual recipe box where users can manage recipes with details such as titles, price points, cooking times, ingredients, and tags.
Is this course suitable for beginners?
This course is designed for individuals with some experience in Python and Django. It is not ideal for complete beginners, as it delves into advanced topics like Test Driven Development, Docker, and CI/CD with Travis CI. If you are a beginner, gaining foundational knowledge in Python and Django would be beneficial before taking this course.
How does this course compare in depth and scope to other courses?
The course provides an advanced exploration of building a REST API using Django and related technologies. It covers not only the core aspects of API development but also integrates tools like Docker, Travis CI, and Postgres. The inclusion of Test Driven Development sets it apart by instilling best practices in development and testing, which are often not covered in basic courses.
What technologies and tools will I learn to use in this course?
The course covers the use of Python, Django, and the Django REST Framework for API development. It also incorporates Docker for containerization, Travis CI for continuous integration, and Postgres for database management. Additionally, it emphasizes Test Driven Development practices throughout the lessons.
What topics are not covered in the course?
The course does not cover frontend development or user interface design. It focuses solely on backend API development and related practices. If you are looking to learn about frontend frameworks or full-stack development, this course would not address those areas.
How much time will I need to complete the course?
The course consists of 72 lessons. The time commitment will depend on your pace of learning and prior experience with the technologies. On average, students can expect to spend several weeks completing the course, especially if they are new to the advanced topics covered, like Docker and Test Driven Development.