Implementing User Authentication With Node JS and PostgreSQL

preview_player
Показать описание
Hi all,

In this video we are going to be building a Node JS application which will connect to Postgres (SQL) database. The database will be used to store user details including their names, email addresses and passwords in order for them to log on to the application.

We will be using the following Node libraries:

Express - To serve our application
bcrypt - To hash user password to make them secure
express-session - To store session details in a session cookie object
express-flash - To display flash messages to the user
passport - To authenticate users
passport-local - To implement a local authentication strategy for our application

I hope you enjoy the video. Please leave me a comment below if you have any questions.

Thanks guys. If you find this tutorial helpful then please consider subscribing to my channel.

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

absolute legend - so many concepts explained very well and linked together all at once, thank you!

LightningFox
Автор

Hi Conor, it seems your video is the best without distracting me from other issues unrelated to auth in the lesson

Samsul
Автор

This has been super helpful. Thank you so much for making this tutorial!!

FlukeHusky
Автор

Great tutorial - easy to follow along, and like some others have said, seeing the debugging is good and keeps knowledge fresh for the viewer. More of these!

gregorvand
Автор

Great tutorial. Everything worked and I learned a lot in the process. Thanks!!!

knowledgemagnetic
Автор

I rummaged through all YouTube in search of a similar video, thank you very much, you helped me do my term paper.

MoonlightReserve
Автор

Perfect Explanation, I'll surely use this whole auth system in my projects !!

raffayahmed
Автор

The most brilliant instructor on earth

Samsul
Автор

Amazing video! I ended up needing to use react for my frontend but this was the best explanation ever. Definitely will watch more of yours! :)

taylorgraham
Автор

Thank you so much. The tutorial was so nicely explained and it is very helpful for beginners. Keep it up!

nikitagupta
Автор

Excellent, really helpful and easy to follow! I'm glad you left some mistakes in the video as they gave a chance for me to check my code and find them myself

seankennelly
Автор

That video helped me so so much! Finally i can make auth at my website. You have no clue how i'm grateful to you, subbed.

andreygrigorev
Автор

this was awesome! i was transalting your JS to TS. Challenging but worth it

olaman
Автор

Did the complete tutorial with you! Worked like a charm! Thank you for sharing this! :)
Ahh quick edit: Since version 0.6.0 req.logout() function is asynchronous. So towards the end, for logout the code should be modified as follows:
```
app.get("/users/logout", (req, res) => {
req.logOut(function(err) {
if (err) { return next(err); }
req.flash("success_msg", "You have successfully logged out.");
res.redirect("/users/login");
});
});
```

amitabhxyz
Автор

i never comment but this was a great video even after 2 years. thank you.

blackboxCS
Автор

Wow man, i saw literally every tutorial in the first page of youtube, but yours is on another level. Keep going pal!

MasterPritex
Автор

Thanks a lot Conor for this tutorial, really helped me a lot for my Project!!!...Keep up the good work man

maheswaranparameswaran
Автор

Great video, thank you very much, I love when you solve the issue, it's debugging!

riccardovitali
Автор

Thanks, Conor! I appreciated the way you went step by step and mentioned what you will be doing in each step. It helps a lot to have a logical flow. Cheers! By the way, I also created a Donal Trump account as you did.

parfaitmombo
Автор

Thanks Sir... This was really helpful looking forward to more gr8 content from you....

mrexpert