Adding User Signup | Creating a REST API with Node.js

preview_player
Показать описание
Time to add authentication to the RESTful API. Let's start with user signup.

----------

----------

See you in the videos!
Рекомендации по теме
Комментарии
Автор

I rarely watch other tutorial channels because they tend to be lazy, unorganized, and incomplete. But yours are super high quality. Thumbs up

codinginflow
Автор

This is the first time someone actually explains to me why a RESTful API is "Sessionless". KUDOS!

chntGomez
Автор

Seriously Max, so many of your courses are incredibly useful to me right now. You may recall a comment of mine in the summer about how useful these were for my internship, and they continue to be integral to my understanding of web apps. It has been so hard for me to find any useful information about implementing JWT and auth, and this has totally summed it up for me.

hippiejosh
Автор

I was on my way finding tutorials on nodejs authentication when I ran through this. Having watched several videos without really understand what mentors were trying to do, your video was such a helper ;) Tkx a lot and wish you the best.

meh
Автор

A million years from now, internet historians will use this channel as their rosetta stone
thank u so much

selimgnaoui
Автор

Thanks Max, for yet another very clear video! One remark - the (current) version of mongoose (5.10.3) actually does validate uniqueness of a field, and it throws an error with code 11000 if you try to.

sventenhaaf
Автор

First video series i am watching from Max, although i have seen him for past few years.
This is a really amazing instructor and purchasing his new JS course just to show some support!

Simbatronix
Автор

This is one of the best series I've ever watched anywhere. Thank you Max for sharing all of that!

nicot
Автор

The most powerfull nodejs courses I started with you on udemy and I keep finding my solutions with u every where. Thank you !

mahmoudsouayfan
Автор

this was an amazing tutorial. i have to say, your tutorials are a lot more advanced than netninja or traversy media. i suggest anyone to first watch those beginner level tutorials and then watch academind, to get a better idea. one small suggestion i can give for this tutorial is that you didn't use the gui tools like compass to visualize how the db actually looks like after each operation.

vikrantsingh
Автор

If you want email to be different for every user you can just add unique : true parameter to the email field in User model

sukhmandersingh
Автор

Ich habe ja schon viele Tutorials gesehen, aber diese toppen alles! Einfach großartig!!

jotube
Автор

Hi Max. I have watched a lot of your courses. You are an amazing instructor. Keep up the good work

solmazk
Автор

You can also use unique: true in the user model file to store only unique email data.

sns
Автор

You are the best tutor bro. Easy to understand and got to the point.

stevensonicteam
Автор

Thanks for posting this. This is a really good explanation and example of making a user login and validation.

timharris
Автор

Thank you, Max. You give other useful information besides main topic.

yavuzkavus
Автор

I think better practice to deal with errors is to pass them using next(), so that you can handle all errors at just one place in the same way.
if (error) {
err = new Error("error message");
err.status = 500;
next(err);
}
But, to use this way, you must have written the code to deal with errors at a very high level (e, g in app.js)

elgobert
Автор

actually there is shortcut to change multiple similar words by simply pressing f2 and press enter. hope it helps!

zaylo
Автор

"Now as all pro developers we can simply google for email regex" hahahahaha ded your nuance sense of humor is amazing tbh

hadipawar
welcome to shbcf.ru