NestJS Fundamentals - Providers tutorial

Sdílet
Vložit
  • čas přidán 26. 07. 2024
  • Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
    This NestJS Fundamentals tutorial covers Providers and gives an example of how to create a service. After creating the service, we will use dependency injection to inject the service into our NestJS controller.
    💖 Support me on Patreon ➜ / davegray
    ⭐ Become a full-stack web dev with Zero To Mastery Courses:
    - The Complete Node.js Developer: bit.ly/CompleteNodeJS
    - Advanced React: bit.ly/AdvReactDev
    - Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr
    🚩 Subscribe ➜ bit.ly/3nGHmNn
    📬 Course Updates ➜ courses.davegray.codes/
    ❓ Questions - Please post them to my Discord ➜ / discord
    ☕ Buy Me A Coffee ➜ www.buymeacoffee.com/davegray
    👇 Follow Me On Social Media:
    GitHub: github.com/gitdagray
    Twitter: / yesdavidgray
    LinkedIn: / davidagray
    🔗 Source Code: github.com/gitdagray/nestjs-c...
    🔗 Playlist for this NestJS Series: • NestJS Tutorials for B...
    Nest.js Providers Tutorial for Beginners - Series Part 3
    (00:00) Intro
    (00:05) Welcome
    (00:26) Starter Code
    (00:45) Quick Review & Lesson Goals
    (02:22) What are NestJS Providers?
    (03:19) Create the Service Class
    (12:59) Dependency Injection & the Constructor
    (16:04) Update the Controller
    (20:29) Test the Endpoints
    📚 Tutorial References:
    🔗 NestJS Official Site: nestjs.com
    🔗 Node.js Official Site: nodejs.org
    Was this NestJS Providers tutorial for beginners helpful? If so, please share. Let me know your thoughts in the comments.
    #nestjs #provider #tutorial

Komentáře • 42

  • @oladejiadeshina5654
    @oladejiadeshina5654 Před 3 měsíci +4

    Thank you Dave for simplifying Nest to bit. God bless you for all you do sir 🙏

  • @jhanmateo9583
    @jhanmateo9583 Před měsícem +1

    I'm a senior programmer and still learning from these tutorials. Thanks Dave!

  • @SaRaSa2012
    @SaRaSa2012 Před 4 měsíci +3

    Super clear! Thanks for the effort you put in this tutorials

  • @rafaele.2857
    @rafaele.2857 Před 8 měsíci +1

    mr. gray, thank you so much for providing such high quality free content for everyone. You've helped me understand everything I know about javascript, node.js and react. Currently, I am still a student, but I will be forever grateful for your amazing work. I am studying nestjs through the docs for a project and I got surprised when I saw that you started a new series. Anyways, thank you so much!

  • @user-dy3wk3ly9b
    @user-dy3wk3ly9b Před 8 měsíci

    Thanks Dave. Can't wait for next videos❤

  • @7doors847
    @7doors847 Před 8 měsíci

    Awesome series so far! 🤘

  • @JonBrookes
    @JonBrookes Před 8 měsíci

    this is well cool,
    so nice to see such clean code and explanations

  • @nirajdeshmukh7514
    @nirajdeshmukh7514 Před 8 měsíci

    Thank you so much for this tutorial! I love it

  • @shouryasinghrathore2727
    @shouryasinghrathore2727 Před 8 měsíci

    Thank you so much, sir, for this Nest.js series. You explain everything in a very simple way. I have a request: if possible, could you build a project in upcoming videos, like a blog app or something similar? This would help us understand best practices and how things work in Nest.js

  • @fabr0
    @fabr0 Před 14 hodinami

    Thanks Dave, only one thing, I had to tweak the update decorator a little bit within the decorator, cause it wouldn't update, it returned the same unchanged user. I'll leave it below in case anyone gets the same trouble
    const user = this.users.find((user) => user.id === id);
    if (user) {
    Object.assign(user, updatedUser);
    }
    return user;

  • @yassin_tbk
    @yassin_tbk Před 8 měsíci

    Thanks for all ❤

  • @konfcyus4865
    @konfcyus4865 Před 7 měsíci

    Thanks for the series.

  • @sherlocksummer6284
    @sherlocksummer6284 Před 2 měsíci

    Thank you

  • @shakapaker
    @shakapaker Před 8 měsíci +1

    Would be interesting to see explanation of solid patterns in context of NestJS, how to handle business errors with filters, business logic only in services etc.

  • @iUmerFarooq
    @iUmerFarooq Před 8 měsíci

    can't wait for upcoming tutorial❤ Please also cover authentication, authorization, session, auth etc

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 8 měsíci +1

      Auth is a big topic. Might make another good short playlist on its own.

    • @iUmerFarooq
      @iUmerFarooq Před 8 měsíci +1

      @@DaveGrayTeachesCode The series is still going, If possible add that too or make another series.

  • @TravinskiyVladislav
    @TravinskiyVladislav Před 8 měsíci

    Thanks

  • @Saldymedis
    @Saldymedis Před 6 měsíci

    Cool 👍

  • @junedsetiawan
    @junedsetiawan Před 8 měsíci

    Thanks Dave! Great video,Will there be a playlist for nest js microservice implementation?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 8 měsíci +1

      Maybe a separate playlist from this one. Focused on the basics & a REST API here.

  • @umman000
    @umman000 Před 8 měsíci

    Thanks❤ I always want learn nest.js.But I can't find good resources. I hope this course will be perject.

  • @Frankitoact
    @Frankitoact Před 8 měsíci

    Thankssss Dave!! This is great! Is it going to be a long course, like Nodejs Course? Thanks a lot!

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 8 měsíci +1

      Not too long.

    • @blaqhakym
      @blaqhakym Před 8 měsíci +1

      I do not care for the length of the tutorial, although I really care for your wellbeing. I'm just trying to say that whatever length of videos this needs to be in order to be in the same standard of quality as the others, while still maintaining your wellbeing, I'm down for it 😊. I love you man

  • @ogunacg3387
    @ogunacg3387 Před 8 měsíci

    I really love your videos,I was just wondering what your plan for this video series is, I mean, just showing the capabilities of nest.js or making a project with it?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 8 měsíci +1

      Thank you! The goal is to build a full functioning Rest API with standard features. Not a deep dive but not glossing over everything either. Foundational knowledge.

  • @gisssk9236
    @gisssk9236 Před 8 měsíci

    i'm looking for part4 sir this is so good for beginner !

  • @glennbullock3778
    @glennbullock3778 Před 3 měsíci

    Splitting hairs, but why iterate all users to update one user. You're doing a findOne at the end anyway. Cheers. Great stuff.

  • @MuhammadAwaisArif
    @MuhammadAwaisArif Před 8 měsíci

    When the next chapter coming?
    I'm on an internship and now learning backend. I started from you but after today I'll have search some other channel because you haven't uploaded the whole course. Please release videos as soon as possible. I'm heavily relying on you.

  • @belkocik
    @belkocik Před 8 měsíci +1

    Are you planning to cover microservices?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 8 měsíci +1

      Maybe a separate playlist from this one. Focused on the basics & a REST API here.

  • @saeedkhazalvand4821
    @saeedkhazalvand4821 Před 8 měsíci

    Hello Dear Dave ,
    Huge thanks for your videos ,
    I asked you before in comments in another videos , but I think you were busy , couldn't see that.
    in node , I encounter a problem in mongo dB part that I can't connect it together cause some factor are deprecated .
    ❤❤❤

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 8 měsíci

      It could be a good discussion on my Discord. Link to join is in the description of each video.

  • @user-mq8wf9iy5l
    @user-mq8wf9iy5l Před 8 měsíci

    Hi Dave, just a question, how the data of a new user persist between request ? If i do findAll after created a new user, it appears and i need to understand how please

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 8 měsíci

      A new user is added to the users array property with .push() in this example. This part isn't specific to NestJS. I recommend my JavaScript playlist before learning a framework.

  • @self2008self
    @self2008self Před 8 měsíci

    Thank you