Nest.JS Tutorial Part #2 - Setting up Passport, OAuth2, TypeORM, Sessions, Session Store, Database

preview_player
Показать описание
In this second episode of our NestJS application, we will setup OAuth2 with Passport, Sessions, Session Store, TypeORM, and MySQL. The goal of this video is to setup a base project for our Full Stack application. In the next part of this NestJS series, we will setup GraphQL.

Once we're done with this mini detour series, we can focus on using our base project we created to build out the entire backend for our Discord Dashboard application.

Want to support me and the channel? Donations are not required but greatly appreciated!

VSC Extensions:

Theme - Nord
Formatter - Prettier
Рекомендации по теме
Комментарии
Автор

Excellent tutorial! This is exactly what I was looking for and couldn't find anywhere else. Thank you so much!

AeroFullspeed
Автор

After searching a zillion sites about this, thanks for this clear explanation.

duncansoares
Автор

Anson, you are a real genius - your approach to explaining us building the application from scratch is absolutely best i've ever seen. You really help us students to create a project similar to us but with local passport strategy. Thank you.

ГеннадийКочев-зу
Автор

0:01:30 set up (install packages) et configure DB param
0:06:00 utilise le paquet configue pour les variable d'env pr configurer la DB
0:12:00 create the dataBase
0:12:26 Environement (switch entre production et dev env)
0:18:10 create typeOrm entities
0:20:30 creation de la table ds la DB
0:23:20 imlementation du controller auth endpoints
0:30:00 creation de auth.strategie
0:36:15 création des crédential ds discord
0:40:00 continuation de auth.strategie
0:42:00 creation de auth.guard
0:46:00 utilisation du auth.guard ds le controler
0:51:50 initialise passport & session middleware
0:57:00 implemente serialize & deserialise pour store la user session ds la db
1:00:00 configurer le service pour récup les user de la DB
1:13:40 creating user in db (auth.services)
1:15:31 implemente deserialization
1:18:00 implemente findUser() service pour la deserialization
1:19:00 continue l'implementation deserialization
1:23:30 creer la route status avec le guard pour savoir si le user est autentifier
1:28:00 set up the session store (redis)
1:35:20 set up the session store (typeOrm)

adrientheus
Автор

I'm building my first fullstack project with Nest and hell yeah, Anson, it was super usefull. Thanks for this tutorial

Adam-xpcv
Автор

Long time since I watched such a great tutorial. You did awesome, mate. Congrats from Australia 🇦🇺

adilsonlc
Автор

Awesome tutorial, covering every aspect of nestjs oauth2

Nikhil-tzje
Автор

Omg thank you so much, this is 5 star quality content, hope you get millions of subscribers fast :)

YOUdudex
Автор

The best video for oauth2
thank you))

daniilsmakhtsin
Автор

Exactly what I needed. Thanks! Please make more nest videos.

IanGem
Автор

You are amazing at teaching! Thank you so much!

Jul
Автор

damn man, you are very good at explain something, and this video helps me a lot, thanks man

damaroro
Автор

Hi.
While I am following your tutorial clip, at the point of creating DiscordStrategy function at 34:23, my vs code doesn't know the Profile when making validate function. The message is as follow:
Cannot find name 'Profile'.ts(2304).

Should I install other dependencies?
Thanks.

TheinTunZaw-ujun
Автор

how can i implement login button in react?

Gsiniguez
Автор

hello where is part1? please do you have any tutorial about typeorm to nestjs? im trying but i can't. pls help

princed.taylor
Автор

Thank brother, it's help a lot. <3

kousheralam
Автор

Hi. I don't understand. Why do you need session management with oAuth2?

yannismarios
Автор

Where Part 1 in this tutorial my Teacher?? Please give me Link.. 👌👌

yudifebriandy
Автор

I have a problem with TypeORM in auth.service: Solution was this.userRepo.findOneBy instead of "findOne"

ziggys.