NestJS Crash Course

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ย. 2024

ความคิดเห็น • 371

  • @duyhieu7820
    @duyhieu7820 5 ปีที่แล้ว +130

    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

    • @timtim9o5
      @timtim9o5 5 ปีที่แล้ว

      ty

    • @armanmkrtchian488
      @armanmkrtchian488 4 ปีที่แล้ว

      thanks

    • @amitkadosh8444
      @amitkadosh8444 2 ปีที่แล้ว

      ty

    • @onyekaogbusuo3157
      @onyekaogbusuo3157 ปีที่แล้ว

      ​@@amitkadosh8444😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊l😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊0

  • @AlekseyNew
    @AlekseyNew 3 ปีที่แล้ว +6

    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.

  • @kristian9561
    @kristian9561 5 ปีที่แล้ว +174

    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 :)

  • @apurvatripathi7633
    @apurvatripathi7633 4 ปีที่แล้ว +11

    *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 {
    const newItem = new this.itemModel(item);
    return await newItem.save();
    }
    should be the code in @Post method (here create)

    • @Wardret
      @Wardret 3 ปีที่แล้ว

      you are the hero

    • @AsifAli-bj7tp
      @AsifAli-bj7tp ปีที่แล้ว

      thanks man it helped :)

  • @michael.penrod
    @michael.penrod 5 ปีที่แล้ว +18

    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!!

    • @bonfirecodecamp7210
      @bonfirecodecamp7210 2 ปีที่แล้ว +4

      I was getting some weird error about the Nest not being able to resolve some modules ... and doing as your input made it all go away

    • @dan_le_brown
      @dan_le_brown ปีที่แล้ว +1

      Oh, nice.

    • @DenzelHooke
      @DenzelHooke ปีที่แล้ว

      Thanks 1+ also fixed my error about modules not being resolved

    • @AlluAdarsh
      @AlluAdarsh ปีที่แล้ว +2

      I got an error 'Error: Nest can't resolve dependencies of the ItemsService (?). Please make sure that the argument ItemModel at index [0] is available in the AppModule context.' After following your procedure, it is resolved. Thank You!!

  • @MrAndreaGero
    @MrAndreaGero 4 ปีที่แล้ว +19

    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;
    }

    • @johnson5824
      @johnson5824 4 ปีที่แล้ว

      Yep faced this problem too, did the same fix as well. Weird how the official guide in nestjs website doesnt show an updated version of this. Had me wondering for some time if I had messed up elsewhere.

    • @joeholmes4711
      @joeholmes4711 3 ปีที่แล้ว

      a thousand thank yous

    • @sethlewandowski2684
      @sethlewandowski2684 3 ปีที่แล้ว

      Thank you! This solved the error I was getting too.

  • @erikslorenz
    @erikslorenz 5 ปีที่แล้ว +9

    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

  • @arielweinberger
    @arielweinberger 5 ปีที่แล้ว +20

    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.

    • @lardosian
      @lardosian 3 ปีที่แล้ว

      Must have a look, can nest and next be a good combo, thanks!

    • @davidolufemi9247
      @davidolufemi9247 2 ปีที่แล้ว

      Just typescript typed system

  • @Juanmv05
    @Juanmv05 5 ปีที่แล้ว +24

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

    • @ikezedev
      @ikezedev 5 ปีที่แล้ว +1

      He always do this 😍 God bless him

  • @skverskk
    @skverskk 5 ปีที่แล้ว

    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

    • @gosnooky
      @gosnooky 2 ปีที่แล้ว

      There are good Udemy courses of you're willing to part with some coin.

  • @logiconabstractions6596
    @logiconabstractions6596 2 ปีที่แล้ว

    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.

  • @tea_hanks1230
    @tea_hanks1230 4 ปีที่แล้ว

    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

  • @FancyCapitalist
    @FancyCapitalist 5 ปีที่แล้ว +3

    Whaaaaat. 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!

  • @HermesNautico
    @HermesNautico 4 ปีที่แล้ว +7

    26:29 Rather make a "nest g module " first and then a "nest g service " so it autoimports.

    • @princed.taylor4440
      @princed.taylor4440 3 ปีที่แล้ว

      hi, pls am have problems at 48:05 mongoose integration Type 'Item' does not satisfy the constraint 'Document. pls if anyone know where i made the mistak i need help

  • @voiceofvaishhhh
    @voiceofvaishhhh 2 ปีที่แล้ว +1

    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

  • @ThomasFaller
    @ThomasFaller 3 ปีที่แล้ว

    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

  • @developedbyed
    @developedbyed 5 ปีที่แล้ว +48

    Hey Brad, how would you compare this to express?

    • @tnchau1410
      @tnchau1410 5 ปีที่แล้ว +7

      Dev Ed More heavyweight. If you don’t like opinionated framework, this might be bad and bloated. However, Nest does support a lot out of the box so it’s up to you

    • @vkexplores
      @vkexplores 4 ปีที่แล้ว +35

      Express : Nest == Flask : Django

    • @aetherwebdev3620
      @aetherwebdev3620 3 ปีที่แล้ว +3

      @@vkexplores Yeah, Basically

    • @gianluke
      @gianluke 3 ปีที่แล้ว +50

      Nest.js is a TypeScript framework but can be used with JavaScript if you want (nobody does and should). Express is a JavaScript framework; it can be used with TypeScript but it wasn't written with TypeScript in mind.
      Nest.js is a layer on top of either Express (by default) or Fastify. If some other low-scope framework like these two gain popularity, Nest developers will probably write an adapter for using it.
      Express is a low-scope, unopinionated framework. It is an assembly line for external middlewares; it's hardly callable a "framework", as 2 express projects can be radically different. In fact, the common expression "unopinionated framework" sounds to me a bit like an oxymoron to me: a framework needs to have opinions to be a "framework".
      Being unopinionated, Express doesn't tell you how to structure your project and how your app should be developed, meaning that you are totally free to structure your project as you want; this can be seen as an advantage or a disadvantage, depending who you are and what you need. In Express, everything is basically a router, a middleware or a herror handler (another kind of middleware). Express is, for the most parts, an implementation of the "chain of responsibilities" pattern.
      On the other hand, Nest.js is opioninated. It comes with a project structure and introduces you to the typical components of a well-designed application, like controllers, services, DTOs etc. In the documentation you find recipes for about every aspect of a web application. Think about this when you find yourself reading blog posts of doubtful quality on Medium on how you should structure your Express project.
      If you write Express code for a real application as it's written in typical toy example tutorials you'll end up with a pile of disorganized and untestable spaghetti code where everything is inside controllers (routes); if you follow best practices, you'll end up with a project structured similarly to nest.js (or more commonly but less ideally, with files splitted by "component type" rather than by feature); this structure seems overkill in tutorials like this, of course, but it's what you want in the real world and it's what is suggested by Express experts (see for example github.com/goldbergyoni/nodebestpractices/blob/master/sections/projectstructre/breakintcomponents.md).
      Express is older and more popular. Nonetheless, popularity as measured by the number of downloads doesn't necessarily reflect the real world usage by companies. On the web I see everyone talking about JS and Python. In the real world I see mostly Java and C# (for the backend). Anyway, I'm pretty sure Express is more used than Nest.js. Notice that Express will always have more downloads, given that Nest.js uses it under the hood.

    • @rahiyansafin449
      @rahiyansafin449 3 ปีที่แล้ว +1

      @@gianluke you're great!

  • @salah3xx
    @salah3xx 5 ปีที่แล้ว +2

    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.

    • @makssie
      @makssie 5 ปีที่แล้ว

      I just realized the same, the ItemController and ItemService are into ItemModule, so I think that we don't need its all in the app.module, is it correct?

  • @milunacodes
    @milunacodes 5 ปีที่แล้ว +4

    Looks very similar to Java Spring. Awesome!

  • @HIMANSHUSHARMA-eh5wv
    @HIMANSHUSHARMA-eh5wv 5 ปีที่แล้ว +6

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

  • @majidghafoorzade9906
    @majidghafoorzade9906 ปีที่แล้ว

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

  • @Shakas420
    @Shakas420 5 ปีที่แล้ว +1

    Quick side note: the item module could also be generated with the CLI, which would import it to the app module automatically.

  • @MarkEdwardTan
    @MarkEdwardTan 5 ปีที่แล้ว

    Thank you for this Brad. I was starting to learn the mean stack and was finding a good nodejs framework related to angular. I found nestjs but was a bit hesitant. After watching this, I will continue with nestjs. God bless 🙂

  • @daflanofficial
    @daflanofficial 3 ปีที่แล้ว

    Subbed, pretty straightforward, not even a single useless word, thanks for that

  • @donotenter578
    @donotenter578 5 ปีที่แล้ว

    Good video. Just finishing off an Angular course myself; and researching NodeJS also. Good tempo on how this set of code is put together in the video; easy to follow along. Thanks!

  • @ahmedn232323
    @ahmedn232323 5 ปีที่แล้ว +5

    OMG we r starting a new project with nestjs in the backend, thanks bro,

  • @daniellaerachannel
    @daniellaerachannel 5 ปีที่แล้ว

    when you're looking for a tutorial over and over and you can't find anything on the web, Brad comes to the rescue! Great

  • @Kay-hx8xb
    @Kay-hx8xb 5 ปีที่แล้ว +2

    I think it is about time for me to switch to JS from about 3 years of living in .NET technologies. People says JS is the future programming language!

    • @mattgic42
      @mattgic42 5 ปีที่แล้ว

      I think JS is the future in web application development. But I still like to believe .NET will still continue to have a place in native desktop application development, unless some JS technology comes along that can compile JS apps into .exe programs that can access the hardware level.. Not sure that will ever really be a thing though. So I'd say it's all about what you want to create, web apps or desktop executable apps and/or games..

  • @אליסףשהם
    @אליסףשהם 5 ปีที่แล้ว +2

    Wow, what a framework.
    You are the best, Brad!

  • @bainapallivinodkumar7672
    @bainapallivinodkumar7672 2 ปีที่แล้ว +1

    Brad your tutorials are master pieces learnt a lot. Thanks for the sessions and efforts you are putting. make people be happy🙃

  • @sammytg7
    @sammytg7 ปีที่แล้ว

    chat gpt suggest me this tutorial and i loved it keep it up Traversy Media that was best tutorial i have seen on Nestjs

  • @sethlewandowski2684
    @sethlewandowski2684 3 ปีที่แล้ว

    Thank you, Brad. Great as always. Wish there was a better/easier way to handle errors from new versions ( I ran into 2-3), but if you're resourceful enough, I was able to find all explanations in the comments... Anyway, thank you!

  • @belindabaumgartner4639
    @belindabaumgartner4639 5 ปีที่แล้ว

    Very clear and easy to follow and understand crash course. I wish you'd provide more such courses with advanced nest.js topics!

  • @masterlup
    @masterlup 5 ปีที่แล้ว +1

    Oncredibly good video. Coming from angular this was easy to catch up.

  • @Carl-yu6uw
    @Carl-yu6uw 5 ปีที่แล้ว +7

    Wish this 'crash course' had included a bit more of an overview of the features and practical value add of this opinionated framework over express , before jumping into the ubiquitous rest api example. Seems its main market is scaffolding for Angular shops, fair enough I guess. What of the costs or limitations of using this structure and abstraction?

    • @tnchau1410
      @tnchau1410 5 ปีที่แล้ว +3

      Carl github.com/nartc/nest-mean you can look at my repo

    • @miago4155
      @miago4155 5 ปีที่แล้ว

      The NestJS page describes it quite well. NestJS wants to address the problem of existing frameworks like express. The architecture.
      With the orientation according to Angular the use with Angular is optimal because the architecture is very similar, but it is not limited to Angular. By the architecture patterns of NestJS one is "forced" to create a well maintainable and extensible project structure.

    • @TuanNguyen-te5jx
      @TuanNguyen-te5jx 4 ปีที่แล้ว

      @@tnchau1410 ohhh Hi bro from Angular Vietnam

  • @maxwellwynter174
    @maxwellwynter174 5 ปีที่แล้ว +4

    duuude, you are my sensei in codefu. Excellent video, mad props.

  • @kunal9079
    @kunal9079 5 ปีที่แล้ว +14

    Nest js , this js that js I m just fed up of these JavaScript frameworks. But still thanks always.☺️☺️

  • @wintereh4818
    @wintereh4818 5 ปีที่แล้ว +1

    Thank you for all the great tutorials and courses! I now have the skills and ideas for my own TH-cam tutorials from some things I've built

  • @cubeermaui
    @cubeermaui 3 ปีที่แล้ว +1

    Great crash course as always Brad! Love from Germany

  • @KBog
    @KBog 3 ปีที่แล้ว

    Really good crash course Brad, the level of details was on point to still be captivating and covered all the important bits. Thank you!

  • @raianerezende7816
    @raianerezende7816 2 ปีที่แล้ว

    thank you so much for this! clearly explained. PS: is anyone has an error with the ItemModel just delete the imports of ItemsService and Items Controller from app.module. Since we already get them by importing ItemsModule, they are not necessary.

  • @brillyanto
    @brillyanto 4 ปีที่แล้ว

    Clean introduction course. Easily understandable.

  • @chriswilson8584
    @chriswilson8584 5 ปีที่แล้ว

    For the async/await: The service does not have to be given an async prefix for each method. Simply return the promise without awaiting the result. In the controller, label your functions as async but do not await the result in the return or anywhere else in your method. Nestjs automatically awaits the result and sends that data.
    i.e. some.service.ts
    findAll(): Promise {
    return this.itemModel.find();
    }
    i.e. some.controller.ts
    @Get()
    async findAll(): Promise {
    return this.itemService.findAll();
    }
    And this works 100% as per the documentation. I didn't realize it until I read that, "Every async function has to return a Promise. This means that you can return a deferred value that Nest will be able to resolve by itself."

  • @safiqlodi834
    @safiqlodi834 3 ปีที่แล้ว +1

    Microservices + Nest would be another great tutorial.

  • @alxizr
    @alxizr 5 ปีที่แล้ว

    @Traversy Media
    #Traversy Media
    I am using this framework and it is 2 drops of water as Angular front end framework. I love it very much as it uses #Typescript and DI. I think your audience is ready for a full project using the #Nest.js framework to actually be aware of its capabilities. Just like some of the commenters here said, it reminds #asp.net very much because they're both MVC framework. Another thing Nest.js is good at is seperation of concerns and scopes and it also supports #Fastify if you use it among other technologies. I suggest every one to check the official documentation

  • @aarondizele4884
    @aarondizele4884 5 ปีที่แล้ว +4

    Great video ever for Nest framework! Thanks Brad

  • @imanhajimostafazadeh8449
    @imanhajimostafazadeh8449 3 ปีที่แล้ว

    one of my favorite teachers , thank you brother

  • @michaelgela
    @michaelgela 3 ปีที่แล้ว

    Thank you so much! Just started to learn NestJS and this is a huge help.

  • @tihssiefil
    @tihssiefil 5 ปีที่แล้ว +3

    if u got error like this
    ```Nest cannot export a provider/module that is not a part of the currently processed module (ItemsModule). Please verify whether each exported unit is available in this particular context.```
    just edit items.module.ts
    after line 'providers: [ItemsService],' add 'exports: [MongooseModule.forFeature([{ name: 'Item', schema: ItemSchema }])],'
    may could fix problem.

  • @harleylovitos7233
    @harleylovitos7233 3 ปีที่แล้ว

    Thank you again and again. From your videos, I got hired :)

  • @rafaeljan5089
    @rafaeljan5089 2 ปีที่แล้ว

    Really good crash course. Brad know how to explain everything very well! Thanks

  • @ImConfusedVoteForErdogan
    @ImConfusedVoteForErdogan 3 ปีที่แล้ว

    Hello brad ! Me and lots of people are probably waiting for a course that you will go into depth of nestjs on udemy. U re best !

  • @dimon.digital
    @dimon.digital 2 ปีที่แล้ว

    Thanks a lot! Really helpful tutorial. So short and concentrated, that's what I've been searching for 🔥

  • @fabricioalmeidamedeiros941
    @fabricioalmeidamedeiros941 5 ปีที่แล้ว +3

    Oh good angular on server-side... That is great 🙄🙄🙄🙄🙄... Just joking great job Brad 🙏🙏

  • @pastorfred2543
    @pastorfred2543 5 ปีที่แล้ว

    Looks great and awesome, I'm gonna master it.. Thanks to Traverse Media for your kindness!

  • @codesterlalit
    @codesterlalit 5 ปีที่แล้ว +2

    I loved it. I was just about to give it a try but I feel for it.

  • @Nanda-ho5eh
    @Nanda-ho5eh 3 ปีที่แล้ว +3

    52.50 Anyone getting a weird error at this timeStamp
    the error: Argument of type 'CreateItemDto' is not assignable to parameter of type 'Item'.
    Type 'CreateItemDto' is missing the following properties from type 'Item': $ignore, $isDefault, $isDeleted, $isEmpty, and 45 more

  • @Developerorium
    @Developerorium 3 ปีที่แล้ว

    Amazing 🤩 Nest is super coool for me, because I am very familiar with angular 🙌♥️

  • @varaprasadpepakayala1740
    @varaprasadpepakayala1740 5 ปีที่แล้ว

    Hey Brad,
    This is the Best NestJs Video I could find as per today. I am wondering if you have done any additional videos on NestJs for RBAC/Authentication.

  • @ahmednabil4456
    @ahmednabil4456 5 ปีที่แล้ว +1

    Hi Mr. Brad, in 27:58 I think "id" field defined on the item interface should be called "_id" since we are using mongodb to store our data

  • @sricharantumula
    @sricharantumula 5 ปีที่แล้ว +5

    Hey Brad, Thanks for the nice tutorial. In you tutorial, you have created Item Dto (create-item.dto.ts) & Item Interface. can you please explain me the difference between these two (DTO & Interface)?

    • @loki_glorious_purpose
      @loki_glorious_purpose 3 ปีที่แล้ว

      I also didn't get it. Can any one explain me that?

    • @itsoivanov5682
      @itsoivanov5682 2 ปีที่แล้ว

      It does allow you to abstract your db schema from what you serve and get from the api consumer. However, without an explicit translator, these 2 objects can easily go out of sync in the future.

  • @lukaspechar
    @lukaspechar 5 ปีที่แล้ว

    Invaluable and perfectly explained! Many thanks

  • @jerryliu862
    @jerryliu862 2 ปีที่แล้ว

    Thanks a lot, your tutorial is so clear and easy to follow.

  • @saeedet19
    @saeedet19 2 ปีที่แล้ว

    Thanks Brad! Perfect explanation as always!

  • @dimitartsvetkov9490
    @dimitartsvetkov9490 5 ปีที่แล้ว

    Brad, i thank you, , sir. You are a great teacher and expiration for me. This crash couse is really helpfull andwell structured. Full respect again !

  • @mithilpatel3720
    @mithilpatel3720 4 ปีที่แล้ว

    Found your crash course very helpful, Thanks a lot man!!!

  • @GenieMagicLabs
    @GenieMagicLabs 3 ปีที่แล้ว

    neat, clean & fastest tutorial.
    Thanks a lot

  • @overbyte
    @overbyte 3 ปีที่แล้ว

    Thanks for the great tutorial. Very full feature and loads of useful, practical info. Two thumbs waaaay up 👍👍

  • @amangoswami1369
    @amangoswami1369 2 ปีที่แล้ว

    thank you brad ..
    want more video in nestjs '☑️.

  • @СергейГолубев-л5п
    @СергейГолубев-л5п 5 ปีที่แล้ว +1

    Hello, Brad!
    I love your videos so much and I have a nice idea which I think is especially relevant now.
    Can you please create a crash course on the blockchain technology and than another video with applying blockchain practically by building a real election application. (where you can elect the president). I think it might be interesting.

  • @Naija-kz5bd
    @Naija-kz5bd 5 หลายเดือนก่อน

    Thanks Brad. You are a genius!

  • @Johny1
    @Johny1 5 ปีที่แล้ว

    I really really enjoy these crawh course vids man, they saved my ass with js and css, i really hope you will do one for c# bc im kind of lost, anyways, really love your stuff keep up the good work!

  • @tacklewithtricksbykajala.4231
    @tacklewithtricksbykajala.4231 4 ปีที่แล้ว

    Well explained sir..
    One question how we connect nestjs with client side project
    Will u plz make a video?

  • @rajeev1668
    @rajeev1668 5 ปีที่แล้ว +1

    Hello Brad,
    Thanks you posting video for nestjs.
    Can you also make video for micrroservices using nodejs with mongodb.
    I appreciate your support

  • @AT-vm2jh
    @AT-vm2jh 3 ปีที่แล้ว

    WOW just what I needed! Thanks so much!

  • @newrind
    @newrind 3 ปีที่แล้ว

    Thanks Brad! NestJS is sweet!

  • @VMzaVAS
    @VMzaVAS 5 ปีที่แล้ว +3

    Brad can you make full stack angular/nestjs course?

  • @Charlie_904
    @Charlie_904 5 ปีที่แล้ว +58

    I love these videos but everytime I see a new (insert name).js.. I sigh and think ok what does this thing do...

    • @ksubyslowed
      @ksubyslowed 5 ปีที่แล้ว +2

      my exact thought .. oh great new framework

    • @Deliverant
      @Deliverant 5 ปีที่แล้ว +12

      Welcome to the javascript's ecosystem where every day pops out at least 1-2 libraries

    • @Charlie_904
      @Charlie_904 5 ปีที่แล้ว +1

      @@ksubyslowed yea.. as a newbie and really studying hard, trying to build a solid foundation and then oh here is some more.. I know you dont need to learn everything but still.

    • @Charlie_904
      @Charlie_904 5 ปีที่แล้ว

      @@Deliverant I'm still in the land of vanilla js so feelsgreatman lol

    • @Skaxarrat
      @Skaxarrat 5 ปีที่แล้ว +2

      Welcome to Javascript world

  • @임창수-c7c
    @임창수-c7c 5 ปีที่แล้ว +2

    Would you make a complete nestjs course?

  • @azammohammed9567
    @azammohammed9567 5 ปีที่แล้ว

    There seems to be more JS frameworks than humans on the earth. That's a good thing.

  • @aram5642
    @aram5642 5 ปีที่แล้ว +1

    I liked this video a lot, although I have also installed @types/mongoose. And that's when the problems started to creep up.
    Around 52:11 - you have `create(item: Item): Promise`. but you are calling it from the controller with a parameter of type `CreateItemDto`
    Also, `Model` will squiggle, unless you extend Item with mongoose Document, and the fun with types begins!
    If you ever make another video on that (which I would welcome a lot), I would appreciate some focus around DTO, Pipes and validation... These are different concepts that are difficult at first to get a hold of. Not sure where their responsibilities start and end.

    • @Firiyuu
      @Firiyuu 4 ปีที่แล้ว

      how did you solve this?

    • @leoressfox5708
      @leoressfox5708 4 ปีที่แล้ว

      Man the exact same thing happened to me, i had to uninstall @types/mongoose. I cant explain why but i just had to.

  • @dzsi1994
    @dzsi1994 5 ปีที่แล้ว +2

    Great tutorial as always!! What Vscode theme are you using? :)

  • @amanpreet-dev
    @amanpreet-dev 4 ปีที่แล้ว

    Thanks, Brad for this crash course. :)

  • @romanromanenko9520
    @romanromanenko9520 3 ปีที่แล้ว

    Cool! Pretty clean and understandable! Nothing extra 👍
    Thank you a lot!

  • @TheKamble
    @TheKamble 5 ปีที่แล้ว

    7th...Always in love with Brads tuts

  • @arekhandiaharry4490
    @arekhandiaharry4490 10 หลายเดือนก่อน

    Hello, Brad I love this head start tutorial on nestjs. For my type of person I really loved how things are structured and besides the fact that, I'm an angular developer. It makes me feel much at home.
    I'm very familiar with the regular express and I love express in it's ways. I'd like to ask a question after going through your video.
    Q: Aside importing the express module and the Req and Response, does NestJs have a way of tacking http status code alongside it's responses just like we would do in the reqular express like res.status(406).json({});
    when building APIs I love and always ensure I send the right status code to my client. How else do I accomplish that using the
    NestJs way

  • @ketibansapi4091
    @ketibansapi4091 5 ปีที่แล้ว +1

    man.. such a mind reader..

  • @joga_bonito_aro
    @joga_bonito_aro 3 ปีที่แล้ว

    You're a legend Brad!

  • @sanjaynarang9518
    @sanjaynarang9518 4 ปีที่แล้ว +1

    Great introduction!

  • @imransarkar1750
    @imransarkar1750 2 ปีที่แล้ว

    It was just a awesome overview❤❤

  • @silviupanait8861
    @silviupanait8861 4 ปีที่แล้ว

    You, sir, are amazing and a lifesaver!

  • @abhidynmc
    @abhidynmc 5 ปีที่แล้ว

    Thank you Brad! This was very good.

  • @ceralguy85
    @ceralguy85 4 ปีที่แล้ว

    Great great content, you should be create a complet guide of nestjs on Udemy or another teaching platform, it would be really great

  • @novailoveyou
    @novailoveyou 7 หลายเดือนก่อน

    Brad is the best

  • @JohnDoe-sz5jh
    @JohnDoe-sz5jh 4 ปีที่แล้ว

    Nice! More of this please!

  • @i3oges
    @i3oges 5 ปีที่แล้ว +1

    At 49:20 in your itemService and itemController, I don't think you don't need to mark your functions as async and return an await (....), since you're returning a promise you can just return that. In your frontend you would await the response or subscribe to an observable of the request. eslint.org/docs/rules/no-return-await Great vid though!

  • @haroonafridi1802
    @haroonafridi1802 3 ปีที่แล้ว

    This is very beautiful article.

  • @omirosvasdaris7697
    @omirosvasdaris7697 3 ปีที่แล้ว

    Useful Crush Course! Thank you!

  • @kirant9339
    @kirant9339 5 ปีที่แล้ว

    Thank u brad I'm learning from ur media. It's very useful for me thanks you so much.and I m preparing a star rating and login page using reactjs. But I want demo video for that pls upload its my request pls

  • @zvlehmlreano3002
    @zvlehmlreano3002 5 ปีที่แล้ว

    your a Genius sir.... anyway, can u make also a video on Nest js + MySql connection.. Thank you sir.. Good job..