Next.js and Django JWT Authentication | Part 1 - Backend API

preview_player
Показать описание
🔥 Subscribe to my YouTube + Turn on Notification Bells!

Final project code:

Hey, Bryan here. I share videos that help web developers up their development skills!

Here is an overview of the things you will learn in this tutorial project:
2. How to store jwt credentials in httponly cookies and how to handle cookies getting sent cross-origin.
3. How to set up Google and Facebook OAuth2 login.
4. How to set up account activation and password reset.
5. How to use Redux Toolkit along with RTK Query to implement state management, client-side data fetching and caching, and automatic re-authorization.
7. How to deploy this stack on digitalocean using digitalocean app platform, digitalocean spaces, digitalocean domain management, and AWS Simple Email Service for managing sending of emails.
8. And more!

Timestamps
0:00 - Intro
6:54 - Overview
13:07 - Initial Setup
20:01 - Initial Settings
27:39 - Djoser Setup
39:23 - Custom User Model
49:30 - AWS SES Setup
1:06:07 - Djoser Endpoint Testing
1:18:38 - Modifying Email Template Text
1:22:08 - Continuing Endpoint Testing
1:26:28 - CORS Headers
1:30:04 - Customizing Authorization
1:34:28 - Customizing Authentication
1:53:18 - Testing Customized Endpoints
1:56:55 - OAuth2 Setup
2:07:18 - Google OAuth2 Setup
2:13:06 - Customizing OAuth2
2:16:50 - Testing Google OAuth2
2:20:45 - Facebook OAuth2 Setup
2:26:22 - Testing Facebook OAuth2
2:29:45 - Production Database Settings
2:35:39 - Production Static File Settings
2:42:35 - GitHub Repo Setup
2:47:14 - Digital Ocean Deployment
3:09:04 - Testing Production App
3:15:02 - Testing Production OAuth2
3:23:00 - Customizing Media File Location
3:26:17 - Outro

To stay up to date with the best web development content, make sure you subscribe to My YouTube channel Today!

Documentation links used in the video:

Рекомендации по теме
Комментарии
Автор

Let me know in the comments what sort of content you're most interested in:
- tutorials on something specific
- how to build certain apps (e-commerce/social media/real-estate/clones of other apps/etc.)
- overview of how something works (authentication/app architecture/deployment/etc.)
- other

Also one thing I'm thinking is to have things outside of just tutorials on this channel, could be interesting to dive into some topics like the ones in the last point. I like putting together tutorials, but also don't want to just be a tutorial channel.

Let me know your thoughts on some of these things!

bryanbrkic
Автор

Thank you immensely! I'm positively brimming with excitement for the second part!

maged_helmy
Автор

Love to see more of exactly this content, also welcome back hopefully you're planning to update your course!

codernerd
Автор

This is GOLD! Finally someone who knows their Django!

shanejames
Автор

This is by far the best course I found on Youtube. Thank you.

toogiitube
Автор

I don't understand how you got only 260 likes. It is by far the best tutorial I have watched on the topic !

guillaumedesurville
Автор

Thank you so much for this incredible value you're sharing with us 🙏, keep up the good work!

MohamedElguarir
Автор

This is an awesome video, especially for someone who moves from Django as a full-stack, to Django as a backend only, this is where the challenge comes to understand the lower layers of authentication and how to customize everything to work with the JS frameworks. Thanks, @bryanbrkic for this awesome video.

eagleofsharm
Автор

Maybe something like OTP authentication with next and django?

Being new to frontend technologies, your previous videos on how to implement jwt authentication with react and django helped me a lot, as these kinda tutorials are rare out there.

Also doing some system design stuff, as people already do tons of tutorials without any thoughts of how potentially an app can get messy without a well organized structure would be pretty come in handy ☺️

farzadfaal
Автор

Thank you Bryan, great video, learned so much about Django and Python coming from the JavaScript ecosystem

aaronl
Автор

Thank you! Was looking for a tutorial like this for ages! Very useful

Diego-prio
Автор

What you shared in this video is just incredible, documentations resources, explanations, examples, straight to the point. Thank you dear. I don't really understand why you are at 500 likes.

dieudonneoutchi
Автор

you are the best tutor on youtube the next project will be mobile otp authentication ecommerse project

bijendernagar
Автор

Thank you Bryan, It was awesome.I learned alot.
as a side note, your speaking and teaching style and even tone your voice reminds me of Adam Swaap (Houdini Artist)

ScottN
Автор

Amazing content, a new series idea could be using docker, redis, celery with django and deploying to production as ive had a hard time finding content with all of them togethor. Awesome vid!

harimzermeno
Автор

Hello Bryan, whatever you do, thank you so much for your videos that helped me a lot in the past. I think it's necessary to vary the production of videos on different topics.

abdullamagametov
Автор

i like your teaching style a lot, thank you sir

CalMeNeva
Автор

Bryan remembers he has a Youtube channel and audience.
super excited for this. :D

zaidangaming
Автор

This content is really excellent, thank you. I think you can also produce content about application architectures (microservice etc.) in Django.

QzMystic
Автор

Hey awesome content, instant follow :)

carlosrangel