NestJS Crash Course

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

Sponsor: DevMountain Bootcamp

Code:

💖 Become a Patron: Show support & get perks!

Nest JS Docs:

Website & Udemy Courses

Follow Traversy Media:
Рекомендации по теме
Комментарии
Автор

6:30 - generates controllers
11:51 - defines DTO (data transfer object)
16:34 - req, res from Express
19:37 - params
25:43 - services
37:52 - connect to mongo

duyhieu
Автор

Brad even tho I wont look at this course right now I want to thank you for all you've done! There are few people who teach like you and even for for free!
You are gift from god keep that in mind :)

kristian
Автор

One thing to note (which doesn't matter since Nest resolves it) but once you included the "ItemsModule" into the application module, you can remove the ItemsController and ItemsService from the controllers and providers arrays since that module is bringing in those things. Great video Brad!!

michael.penrod
Автор

Thank you!
One thing:
49:20 When you return promise from async function, you don't need to await for it. This will be done by design.

AlekseyNew
Автор

Udemy best-seller NestJS course author here. Great content, Brad!
Just to correct one thing - you don't *need* to create a DTO. You can send/receive data in controller handlers without doing so. It is just a better practice that has plenty of other benefits.

arielweinberger
Автор

When I have to do an API in NestJS for a project, boom, new Brad's videos about that. Many thanks !

Juanmv
Автор

Thanks!! if you are using the latest version, you need to extend Document in your Interface

import { Document } from 'mongoose'

export interface Item extends Document{
id?: string;
name: string;
description?: string;
qty: number;
}

MrAndreaGero
Автор

Good timing...I've been fiddling with it the past week. Node needs more frameworks with tutorials and such. Structuring things is my main frustration and I've decided I like typescript

erikslorenz
Автор

*UPDATE*: 1) make sure you remove the ItemsController and ItemsService imports from the app.module.ts file, otherwise it is causing an error
2) async create(item: CreateItemDto): Promise<Item> {
const newItem = new this.itemModel(item);
return await newItem.save();
}
should be the code in @Post method (here create)

apurvatripathi
Автор

I looked into NestJS a couple days ago and was sad to see you didn't have a video on it AND here you are! You magician, you!

FancyCapitalist
Автор

When I get to some project where I need to use some other tech stack I'm not used to, my initial reflex is typically to open the doc, skim it, then skim the getting started.

Then I check if TraversyMedia has a crash course on it, to get a bit of context & useful tips. Then I do the Getting started of the project/docs, then I crush the project. Thanks.

logiconabstractions
Автор

After watching your tutorial, I began looking at other NestJs videos. There's not a whole lot out there and each and everyone really blows big time. Yours is the only one that I can understand and learn from. You've got a knack for teaching. Thank you

skverskk
Автор

Hey Brad, how would you compare this to express?

developedbyed
Автор

One of the best best tutorials ive seen. I am soo thankful for this video because I needed to learn NestJS really as quickly as possible for my work...youve explained each and every small detail soo clearly that it just sank in my mind immediately! Thank you SO MUCH. This definitely deserves a lot lot more views

voiceofvaishhhh
Автор

That's quite a tutorial Brad, thanks a lot.
Just a few side notes: I think you forgot to remove ItemController & ItemService declaration in AppModule, and async/await is not necessary in ItemService since mongoose return promises anyway.

salahxx
Автор

You have no idea how grateful I am for your tutorial, I have just finished building an API in Node and I have to replicate it in NestJS ... Guess I have landed on a perfect tutorial

tea_hanks
Автор

Looks very similar to Java Spring. Awesome!

miluna
Автор

Just had an interview with a company where they mentioned they were starting to use Nest for some of their APIs. Can definitely see why. This is neat

ThomasFaller
Автор

Please make a more complete course for nest. This course doesn't contain some important concepts like middleware, authentication and etc. Thanks Brad ❤️

majidghafoorzade
Автор

Please make a video on elastic search with nodejs and expressjs.
MUCH NEEDED VIDEO!!
(:

HIMANSHUSHARMA-ehwv