Typescript API in NodeJS / Express in Depth [Part 1]

Поділитися
Вставка
  • Опубліковано 25 жов 2024

КОМЕНТАРІ • 28

  • @rayrobinsongonzaga9681
    @rayrobinsongonzaga9681 Місяць тому +3

    The perfect tutorial I've been looking for! Not just teaching the technologies but most especially best practices, testing, and error handling! Thank you! Make more videos please! Subscribed!

  • @mallorylaforet6419
    @mallorylaforet6419 7 місяців тому +1

    Glad you're making videos again. I enjoy your content!

  • @TheOnlyIchiban
    @TheOnlyIchiban Місяць тому

    This is seriously a fantastic tutorial, i love the in depth explanations on what you're doing and the reasons, it's really important to understand. This was exactly what I needed, awesome work

  • @AndrewEddie
    @AndrewEddie 8 місяців тому +2

    Great update. I shot you a pull request that shows you how to use the Rest Client plugin available in VSCode as an alternative to Postman.
    Also happy to do an example for project based snippets if you are interested (you could, as a silly example, set up a snippet to give you boiler-plate code for any middleware function).

    • @TheNerdyCanuck
      @TheNerdyCanuck  8 місяців тому +1

      I like that a lot! Looks really easy to define some routing tests (instead of postman)
      I think I'll merge it in for people to try.
      As for snippets, I'm saving those for other videos as things get more complex.

    • @AndrewEddie
      @AndrewEddie 8 місяців тому

      @@TheNerdyCanuck thanks for that!

  • @JacquesOP
    @JacquesOP 4 місяці тому +1

    Thank you Sir that was exactly what I was looking for.
    Simple and educative!

  • @beetpalm
    @beetpalm 3 місяці тому +1

    i love it, i'm from thailand I'm just starting to learn how to program. I really enjoy your videos.

  • @SayfSentinel
    @SayfSentinel Місяць тому +1

    This way better than a Netflix series

  • @csguru8211
    @csguru8211 5 місяців тому +1

    Thanks a lot for providing such a quality content

  • @lukaslearning3549
    @lukaslearning3549 5 місяців тому +1

    I hope you will cover Jest as well. I tried it before but I got trouble with type-checking inside test files.

  • @pdsavard
    @pdsavard 23 дні тому +1

    Thanks for the great video. Got a small question, in the Cors Middleware, I can't add the return res.status(200).json({}) without getting a typescript error on the application.use(corsMiddleware). error: No Overload matches this call... Any idea?

    • @TheNerdyCanuck
      @TheNerdyCanuck  16 днів тому

      No overload matches makes me assume the function itself isn't defined properly. Still having this issue?

    • @pdsavard
      @pdsavard 16 днів тому

      @@TheNerdyCanuck solved! its because in typescript I can't do return res.status(200)...... something do not like that. I need to set the status then do a "empty" return;

    • @TheNerdyCanuck
      @TheNerdyCanuck  16 днів тому

      @@pdsavard strange, it should let you return but I'm happy you got it to work!

  • @daz1uk
    @daz1uk 5 місяців тому +1

    Great video 👍

  • @aliahmadi8816
    @aliahmadi8816 3 місяці тому +1

    @TheNerdyCanuck Thank you for the content, I get an error if i try to log any of the config variables, I have to import them individually for it to work, what i mean is doing:
    import './config/config';
    console.log(DEVELOPMENT)
    will throw an error that
    Cannot find name 'DEVELOPMENT
    Thank you!

    • @TheNerdyCanuck
      @TheNerdyCanuck  3 місяці тому

      Its a setting in the config file to check the NODE_ENV env var

  • @trieunguyentuan4589
    @trieunguyentuan4589 7 місяців тому +2

    why using package cors. Thanks

    • @TheNerdyCanuck
      @TheNerdyCanuck  7 місяців тому +1

      You can use a package for it for sure, it's probably easier

  • @attaullahsiddiqui3931
    @attaullahsiddiqui3931 3 місяці тому

    Why are you not making more videos?

    • @TheNerdyCanuck
      @TheNerdyCanuck  3 місяці тому

      I would like to make more! I am working on some testing ones right now, it's just hard to justify the time with the kids atm :)

    • @attaullahsiddiqui3931
      @attaullahsiddiqui3931 3 місяці тому

      @@TheNerdyCanuck Cool. Plz make more vidoes on NodeJS Angular GraphQL

  • @atnguyen-qg6ze
    @atnguyen-qg6ze 2 місяці тому

    Why can logging be used in handlelogging middleware?

    • @TheNerdyCanuck
      @TheNerdyCanuck  2 місяці тому +1

      The middleware is designed to add logging to every request instead of using a third party library.

    • @atnguyen-qg6ze
      @atnguyen-qg6ze 2 місяці тому

      @@TheNerdyCanuck thanks