Тёмный

Nest.js Crash Course : A Comprehensive Step-by-Step Tutorial 

Sakura Dev
Подписаться 11 тыс.
Просмотров 30 тыс.
50% 1

❤️Please Support me by subscribing to my channel 👉🏻www.youtube.com/@sakuradev?su...
Welcome to this comprehensive Nest.js crash course, where we will explore the fundamentals of building scalable server-side applications using Node.js and TypeScript. In this tutorial, we'll start with the basics of Nest.js, including its architecture, modules, controllers, and services.
Then, we'll go deeper into controllers and services, learning how to handle requests and responses from clients and create reusable business logic, respectively. We'll also cover modules, how they organize our code, and make it more modular.
Next, we'll dive into connecting to a PostgreSQL database using TypeORM, a powerful Object Relational Mapper (ORM) that makes database interactions seamless. You'll learn how to set up the database within a docker container, create tables, and query data using TypeORM.
💻 GitHub Repo (don't forget to give it a ⭐): github.com/vahid-nejad/nest-c...
Content:
0:00 Intro
1:09 Setting up new nest.js project
2:35 Explaining file structure and modules
6:02 Controllers
10:34 Defining the params for API routes
12:45 Accessing to the body of requests
14:24 DTO: Data Transfer Object
17:20 Validation Pipe :How we can validate the body object of a request
21:38 Services and dependency injection
27:38 Injecting (using) a service to another module
32:03 Setting up PostgreSQL DB with docker compose
36:23 Creating entity models with TypeORM
40:04 Defining DB triggers for PostgreSQL with TypeORM
42:19 Configure TypeORM to work with Nest.js
48:24 Creating relationships between entities
57:02 Injecting and using the TypeORM repositories for Entities in services and doing CRUD to DB with ease

Опубликовано:

 

7 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 69   
@azizbek1106
@azizbek1106 Год назад
I recommend anyone who has just started learning NextJS for the first time, This video is better than everyone else
@SakuraDev
@SakuraDev Год назад
wow, thst was a nice one 🌷🌷🌷. it really encourages me to move forward. thanks.
@minhtetoo80
@minhtetoo80 Год назад
It's NestJS. Not NextJS
@azizbek1106
@azizbek1106 Год назад
@@minhtetoo80 I recommend anyone who has just started learning NestJS for the first time, This video is better than everyone else
@NobleOsinachi
@NobleOsinachi 11 месяцев назад
Thanks for the review. This was the first video Google recommended to me.
@laxmikanthgurram1074
@laxmikanthgurram1074 6 месяцев назад
agreed ,after 27 minutes into the video, btw its nest js and not next js
@viralmoney8619
@viralmoney8619 9 месяцев назад
Amazing steps to next js.. pls make huge playlists by creating large application with Nest js and angular 🎉
@furkanc6407
@furkanc6407 Год назад
Thank you so much for a step-by-step explanation.
@SakuraDev
@SakuraDev Год назад
thanks. I am very glad it was helpful for you 🌷🌷
@evanskwofie2443
@evanskwofie2443 Год назад
This was a brilliant video. Using docker was a nice touch. thanks for this. Look forward to the authentication video
@SakuraDev
@SakuraDev Год назад
Thanks, 🙏 🌹, I am really glad it was helpful for you. Actually I have created a video for authentication in nest.js : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-twaUdKr06kA.html
@logistics_guy
@logistics_guy Год назад
This channel is sick. Thank man!
@SakuraDev
@SakuraDev Год назад
Hi, Is that a complement? 😂
@kritsana6170
@kritsana6170 Год назад
Awesome. Thank you so much for crash course video and you explain so clear.
@SakuraDev
@SakuraDev Год назад
thanks 🌷
@nimanikoonazar1541
@nimanikoonazar1541 3 месяца назад
great video
@ogbuezekiel7400
@ogbuezekiel7400 8 месяцев назад
Nice work man. You're the best!!
@SakuraDev
@SakuraDev 8 месяцев назад
Thanks you so much 🙏💖
@rayhankabir6419
@rayhankabir6419 5 месяцев назад
very helpful course.. please make more detailed videos on Nest Js
@mehmetbagci3447
@mehmetbagci3447 7 месяцев назад
Amazing tutorial. Thank you for sharing
@SakuraDev
@SakuraDev 7 месяцев назад
Thanks 🙏
@0xIslamTaha
@0xIslamTaha Год назад
Thanks for sharing, one of the best crash course regarding NestJs
@SakuraDev
@SakuraDev Год назад
Thank you for sharing your positive comment on the NestJS crash course video. I'm glad to hear that you found it helpful and informative 🌷🌷
@quamzgraphix9826
@quamzgraphix9826 Год назад
very good video. keep up the good works.
@SakuraDev
@SakuraDev Год назад
Thank you for sharing your positive comment 🌷🌷
@SiavashSol
@SiavashSol Месяц назад
It's a useful crash course of Nestjs whether For Recap Or Learning.
@SakuraDev
@SakuraDev Месяц назад
🙏🙏🙏
@user-hq1yd8iw1c
@user-hq1yd8iw1c 9 месяцев назад
Good job! Will your next video for nests +prisms tutorial
@Nanashi-rq7lk
@Nanashi-rq7lk 10 месяцев назад
Perfect Video
@SakuraDev
@SakuraDev 10 месяцев назад
Glad you think so!
@rayenselmen603
@rayenselmen603 8 месяцев назад
Good !
@SakuraDev
@SakuraDev 8 месяцев назад
Thanks 🙏
@andrejkling3886
@andrejkling3886 3 месяца назад
Amazing tutorial… thanks a lot 🔥🔥🔥💯 can you create some real project with this tools please?
@user-zd7tg3kh4k
@user-zd7tg3kh4k 10 месяцев назад
thanks so much 谢谢 :
@SakuraDev
@SakuraDev 10 месяцев назад
Your welcome 🙏🌹
@viswanaths7603
@viswanaths7603 Год назад
Good video and explanation
@SakuraDev
@SakuraDev Год назад
Thanks 🌷
@fvagvTV
@fvagvTV Год назад
Great tutorial! I would like your opinion on using Prisma over Typeorm ? Looking forward for future videos like this!
@SakuraDev
@SakuraDev Год назад
Hi, Thanks 🙏🙏. Well, I think, since Prisma uses objects instead of class instances for returning data, It might be faster in data intensive apps.
@tanhoangtrong2480
@tanhoangtrong2480 Год назад
Thank you so much. Can u make more video about Nest?
@SakuraDev
@SakuraDev Год назад
Nice 👍 .
@MightyKingKala
@MightyKingKala 10 месяцев назад
that's was nice video thanks
@SakuraDev
@SakuraDev 10 месяцев назад
Glad you liked it!
@sushilgyawali7880
@sushilgyawali7880 10 месяцев назад
thanks
@SakuraDev
@SakuraDev 10 месяцев назад
You're welcome! 🌷
@ezramollena7588
@ezramollena7588 7 месяцев назад
what a cool tutorial, i wonder if you have a tutorial setting up cicd for your nest app to aws ?
@SakuraDev
@SakuraDev 7 месяцев назад
Thanks 🙏. I need to do some research about it
@quamzgraphix9826
@quamzgraphix9826 Год назад
I would really appreciate it if you can do a video about how to dockerize react/next apps
@SakuraDev
@SakuraDev Год назад
Hi, I will do that soon.
@yasserhy
@yasserhy Год назад
I want to plzzzz ask u a question. How can I use NextAuth with Google to authenticate the user and then pass the session to NestJS project to authenticate the user there also so I can use the guards' features in NesfJS. There are no guides or tutorials about this at all
@lmessi5924
@lmessi5924 Год назад
🔊 Since OP is using Docker for DB connection, please stop your locally installed postgres, otherwise you would get testDB database does not exist.
@SakuraDev
@SakuraDev Год назад
yes, thanks for your tip. if you want to use local postgres, just create testDB, manually.
@gamedevbrownbus2871
@gamedevbrownbus2871 9 месяцев назад
You are a hero, I have been trying to figure out what the problem is and wasted about 1.5 hours before deciding to check out the comment section. You are a life saver.
@prashlovessamosa
@prashlovessamosa 11 месяцев назад
Hello Sakura can you please make a crash course or something on GraphQl .I have learnt Axios and Fetch Api after that tried to learn Graph Ql but failed miserably as all the stuff is outdated .
@SakuraDev
@SakuraDev 11 месяцев назад
Yeah I will put it on my list.
@nemonobody1535
@nemonobody1535 11 месяцев назад
Hi, I am encountering an error while starting the application. [Nest] 608 - 07/30/2023, 1:20:13 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)... error: password authentication failed for user "postgres" but the password is correct. Why this happending?
@SakuraDev
@SakuraDev 11 месяцев назад
Please double check your pass. And if it did not work, share your code in github, I will take look at it.
@imamsutono4530
@imamsutono4530 11 месяцев назад
I have the same issue. So I try @lmessi5924 suggestion to stop the local postgres service, and it works. Hope this help.
@_codesan
@_codesan 11 месяцев назад
it is good to use nestjs as a backend and nextjs as frontend?
@SakuraDev
@SakuraDev 11 месяцев назад
Yeah it's really awesome
@SakuraDev
@SakuraDev 11 месяцев назад
It is my stack.
@_codesan
@_codesan 11 месяцев назад
@@SakuraDev will you create a video about that in the future? maybe with drizzle too
@SakuraDev
@SakuraDev 11 месяцев назад
@@_codesan Yes I put it on my list. It is a good idea.
@pacificview8276
@pacificview8276 10 месяцев назад
1 project on nest js plz
@SakuraDev
@SakuraDev 10 месяцев назад
hi, I have created a new one: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-khNwrFJ-Xqs.html
@pacificview8276
@pacificview8276 10 месяцев назад
@@SakuraDev oh my god I was looking for this you made it.. Millions of thanks ❤ dear for your effort for us
@SakuraDev
@SakuraDev 10 месяцев назад
@@pacificview8276 😃😃🙏🙏🙏🙏
@Vivek-Nishad
@Vivek-Nishad Год назад
Hi , I am getting this error "Cannot use namespace 'PostgresConnectionOptions' as a type.ts(2709) Exported variable 'config' has or is using private name 'PostgresConnectionOptions'.ts(4025)" in ormconfig.ts on this line "const config: PostgresConnectionOptions = {" if i change PostgresConnectionOptions to any it works.
Далее
Learn Nest.js from Scratch by building an API
1:09:06
Просмотров 539 тыс.
Decouple your NestJS code with this technique!
11:37
Просмотров 33 тыс.
💜☀️✨
00:47
Просмотров 509 тыс.
Все кругом Миланы... 🤣
00:12
Просмотров 213 тыс.
NestJS, MySQL, TypeORM Crash Course
1:17:38
Просмотров 91 тыс.
TypeORM Crash Course - TypeScript & Node ORM
2:01:23
Просмотров 96 тыс.
tRPC, gRPC, GraphQL or REST: when to use what?
10:46
Просмотров 72 тыс.
Prisma Crash Course
36:41
Просмотров 59 тыс.
Nestjs Full Course 2022 | Beginner Nestjs Tutorial
2:38:24
Docker Crash Course for Absolute Beginners [NEW]
1:07:39
NestJS Tutorial For Beginners - Learn NestJS
51:49
Просмотров 7 тыс.
💜☀️✨
00:47
Просмотров 509 тыс.