Mô tả

Welcome to the beginner course on How to Build a REST API from scratch, using Django, Django REST Framework, Python, Vagrant, VirtualBox, Atom, and ModHeaders. You'll also learn how to deploy your dev server to AWS!

This course is made with Django 2.2 and Django REST Framework 3.9.

The skills taught in this course are absolutely essential for creating successful products that users love and can’t live without.

Facebook, Instagram, Snapchat, you name it. These apps all have their own backend REST APIs that handle millions of call requests everyday. You cannot build a successful app without a backend REST API.

Not only is it essential to whatever app or MVP you are building -- the skills you learn in this course will make you a kickass developer in the workplace.

If you’re a front-end developer and you take this course, you’ll be able to “speak backend” with your colleagues and understand what’s going on “under the hood” of all your projects, increasing your confidence and earning the respect of your peers.

If you’re a newbie developer or just starting out in your career, this course will give you a very practical foundation to building your portfolio and increasing your earning potential.

In this course you will learn the best-practice way of building your very own REST API.

You will learn how to create a local development server and test your code each step of the way.

Whether you’re looking to gain a bit of experience with backend development, or you’re looking to create a REST API to turn your app idea into a reality - then this course is for you.

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

  • Creating and updating user profiles.

  • Login and authentication.

  • Posting status updates.

  • Viewing status update feeds.

You’ll also have a solid foundation to understanding one of the most complex components in software development.

Bạn sẽ học được gì

How to create the most important part of any user application

How to confidently use some of the most in-demand full stack technologies today

How to create a local development server from scratch

How to create a brand new Django project with sqlite database

How to build your own browsable, self documenting REST API

Handle user registration, login, and status updates in your app with your very own REST API

Yêu cầu

  • Access to a computer that supports VirtualBox (unfortunately this excludes macOS running M1 chips)
  • Familiarity with simple command line tools like command prompt or terminal.
  • Access to a computer running either Windows 10 or macOS
  • A passion for learning and a willingness to persevere when things get tough.
  • If using Windows, your machine needs to support running VirtualBox
  • A basic level of experience in any programming language.

Nội dung khoá học

14 sections

Course introduction

6 lectures
Introduction
01:30
Course structure
01:55
Technologies
05:16
Vagrant vs. Docker
02:53
How to get the most out of this course
01:06
How to get help
01:25

Setting up your development environment

2 lectures
Windows: Installing Git, VirtualBox, Vagrant, Atom and ModHeader
09:22
macOS: Installing Git, VirtualBox, Vagrant, Atom and ModHeader
07:33

Setting up your project

3 lectures
Creating a workspace
05:12
Creating a Git project
08:29
Pushing to GitHub
07:18

Creating a development server

4 lectures
Creating a Vagrantfile
01:47
Configuring our Vagrant box
03:35
Running and connecting to our dev server
01:54
Running a Hello World script
04:03

Creating a Django app

5 lectures
Create Python Virtual Environment
03:39
Install required Python packages
03:10
Create a new Django project & app
02:39
Enable our app in the Django settings file
02:14
Test and commit our changes
03:13

Setup the Database

5 lectures
What are Django Models?
00:38
Create our user database model
10:56
Add a user model manager
11:06
Set our custom user model
01:18
Create migrations and sync DB
03:41

Setup Django Admin

3 lectures
Creating a superuser
02:33
Enable Django Admin
01:15
Test Django Admin
04:26

Introduction to API Views

9 lectures
What is an APIView?
02:47
Create first APIView
07:06
Configure view URL
05:37
Testing our API View
02:05
Create a Serializer
03:44
Add POST method to APIView
07:38
Test POST Function
02:28
Add PUT, PATCH and DELETE methods
04:24
Test the PUT, PATCH and DELETE methods
03:29

Introduction to Viewsets

6 lectures
What is a Viewset?
02:35
Create a simple Viewset
04:00
Add URL Router
04:44
Testing our Viewset
02:27
Add create, retrieve, update, partial_update and destroy functions
06:42
Test Viewset
03:49

Create Profiles API

11 lectures
Plan our Profiles API
02:12
Create user profile serializer
08:35
UPDATE: Bug in profile serializer
01:01
Create profiles ViewSet
02:39
Register profile Viewset with the URL router
01:23
Test creating a profile
04:05
Create permission class
06:37
Add authentication and permissions to Viewset
03:35
Test new permissions
02:27
Add search profiles feature
02:13
Test searching profiles
04:15

Create login API

3 lectures
Create login API viewset
04:33
Test login API
02:42
Set token header using ModHeader extension
05:38

Create profile feed API

11 lectures
Plan profile feed API
01:46
Add new model Item
07:16
Create and run model migration
02:13
Add profile feed model to admin
00:56
Create profile feed item serializer
04:20
Create ViewSet for our profile feed item
05:50
Test Feed API
04:15
Add permissions for feed API
05:35
Test feed API permissions
03:29
Restrict viewing status updates to logged in users only
01:42
Test new private feed
01:19

Deploying our API to a server on AWS

6 lectures
Introduction to deploying our app to AWS
00:51
Add key pair to AWS
03:14
Create EC2 server instance
02:56
Add deployment script and configs to our project
11:59
Deploy to server
04:38
Update allowed hosts and deploy changes
05:20

Summary

2 lectures
Course outro
01:47
FAQs
01:14

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.