Building a user authentication app with React and Django Rest Framework

preview_player
Показать описание
Django Rest Framework is a popular tool for building Django REST APIs. In this video we leverage DRF to build a user authentication app with session authentication.
We use ReactJS on the frontend. The React frontend runs at port 3000 and the Django backend at port 8000.

Chapters:
---------------
0:00 intro
0:48 the setup
0:58 session authentication
1:24 coding the backend
7:32 backend in action
8:28 coding the frontend
14:20 demo
15:09 outro
Рекомендации по теме
Комментарии
Автор

that was really awesome, i'v not seen such a tutorial with django and react befor. keep goin dude.

godlyradmehr
Автор

i'm not so new to django you got me subscribed right away!

keep doing the good work brother

kelvinxg
Автор

Thank you for making the video. It was the first time I have ever had to reduce the play speed!

MrJgracias
Автор

This deserves more likes, alot of effort into the illustrations. Well done!

RecklessEngineering
Автор

I love your tutorials. Clean and easy.

resiluck
Автор

So much in 15 minutes! Thanks for this video

andrew
Автор

Hi Dotja, thank you for making this video 🙂

NeenuJose-ovng
Автор

I loved your tutorial, very fast and easy to follow, keep up the good work!

josuegarcia
Автор

Hi I just came across your channel and you're are a real pro at this like you explain everything and make it easy to follow, good job mate

maheerab
Автор

Very nice tut again, thanks so much : )

raffritter
Автор

Hi!
It's informative and short video!

But what would you do if you will need to access same backend api's endpoints both from SPA (like you do in the video) and from another api clients (not browsers)?

al.e.k
Автор

short but complete, I like it, straight to the point. some webcam action at the start for personality? sure! but focus on the code throughout the video, this is what I like to see.

Plegeus-qkjr
Автор

Got yourself another sub buddy. Thank you very very much.

eddielicea
Автор

great content, by far the best in simplifying django principles. are u planning on making more videos about djangoRest-react?

henoelima
Автор

Hi Dotja, thank you for making this video, i would like to see how you protect a page and api from not logged users

neliobila
Автор

I seem to be having issues with authentication. When I do the login everything works, though, when I refresh the page, the frontend does not seem to remember that I was logged in. I made a url in mu users app in Django: /user/authenticate/, the sole purpose is to authenticate a user base on the request (so if blah blah), unfortunately this step fails, even when I did not refresh the page from react (and when I did the login successfully). Any ideas what might cause this? When I follow to urls in localhost:8000 and manually do the posts, everything works as expected.

Plegeus-qkjr
Автор

This seemed good but am I missing some setup steps? There is a bunch of django boilerplate code that appears right when the video starts without any mention of how to start other than installing 2 dependencies

ahoymatey
Автор

so much information in this video thank you for this

hamaap
Автор

Why is it important to use the IP address rather than the localhost alias? In my own project based on this model I am seeing that making requests from localhost seems to have csrf issues. Can you clarify what is happening?

evanmunro
Автор

Hello, i am totaly 0 in backend but i have to create fullstack app for sceduling school subjects unfortunatly... If i would copypaste this, will i be able to add some roles on this ( like administrator, which would be able to add roles for the certain users etc. etc) ?

pkorneev