Fastify Course 🚀 The Performant Node.js Web Framework

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • This video will be a full introductory course to Fastify - a Node.js-based web framework/HTTP(s) server library. Fastify aims to provide the lowest overhead web framework based on Node.js. You can use Fastify to build a RESTful API, render templates like handlebars server-side (SSR), access databases with its excellent plugins. Fastify is plugin-based and extensible. It also supports hooks and decorators and its syntax is easy-to-learn and developer-friendly.
    In the course, I introduce Fastify and its features, we talk about Fastify's advantages and disadvantages compared to other frameworks like Express, Koa and Hapi. Then we build a Fastify JSON API live and create a custom plugin which represents a controller. I demonstrate the JSON Schema validation mechanisms of Fastify. We then talk about Hooks and Decorators, which can be used to implement authentication with JWT, OAuth or any other authentication method and finally I demonstrate how to do database access with one of the DBA plugins - @fastify/mysql. Fastify also has plugins for MongoDB, Postgres, Redis and others.
    Contents:
    0:00 Intro - What is Fastify?
    1:04 Why Fastify?
    2:57 Build a Fastify Application
    9:48 JSON Schema Validation
    14:33 Create a Controller with a Custom Plugin
    20:22 Hooks
    21:17 Application Lifecycle
    22:15 Decorators
    25:14 Database Access Plugins
    25:33 Using @fastify/mysql
    35:43 Conclusion
    Social Media:
    Email: nikola.n.lazarov@outlook.com
    Twitter: / nikelaz
    LinkedIn: / nikola-lazarov
    #fastify #nodejs #course
  • Věda a technologie

Komentáře • 27

  • @nikolcenalevski5164
    @nikolcenalevski5164 Před 5 měsíci +4

    wonderful introduction to "fastify", nicely explained and understandable by any beginner. thank you for your presentation.

    • @nltech1
      @nltech1  Před 5 měsíci

      Glad it was helpful!

  • @cannabisanomaly
    @cannabisanomaly Před 3 měsíci +1

    Thank you for the super helpful and concise video! I had a question about the use of `process.exit(1)` being used on your catch statement; I know it's a common practice I see on a lot of YT channels, but if you read the modal that pops up when you hover over process.exit(), Node actually states it's unnecessary to include it in most cases. This is because that the try-catch block inherently will handle the error and exit accordingly, but you also run the risk of prematurely terminating any asynchronous functionality when you execute process.exit.
    Just curious to hear what your take on that is, as I'm confused as well, haha. It's a habit I do myself, that's for sure.

  • @dageddy
    @dageddy Před 5 měsíci +2

    Very nice introduction. I’m enjoying learning about fastify. Your comments about the syntax are also useful.

    • @nltech1
      @nltech1  Před 5 měsíci

      Thank you! I'm really glad you find learning about fastify enjoyable!

  • @rockNbrain
    @rockNbrain Před 9 měsíci +1

    Nice job dude! Tks a lot 🎉

  • @anuj7286
    @anuj7286 Před 8 měsíci +3

    This is a quick and simple tutorial to learn Fastify. Thanks, sir

    • @nltech1
      @nltech1  Před 8 měsíci +2

      Thanks! Glad you liked it!

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

      @@nltech1 can we deploy fastify to EC2 instance easily?

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

      I could not able to connect mySQL could please create a short tutorial?

  • @itallovidal9383
    @itallovidal9383 Před 9 měsíci +1

    Awesome!

  • @IonutBoghean-sb6wx
    @IonutBoghean-sb6wx Před 8 měsíci +1

    Very good tutorial, thank you

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

      Thank you! I’m glad you found it useful.

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

    Really good content! Thnx

  • @dmsnm
    @dmsnm Před 3 měsíci +1

    NestJS has passed Express in GitHub stars

  • @samsloanmusic1749
    @samsloanmusic1749 Před 4 měsíci

    Great video! I noticed you used a different syntax for database connection than most of the documentation I've seen. Usually it's the `connectionString` syntax. What is the difference?

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

    Nice❤

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

      Thank you! Glad you liked it.

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

    good video..... without sound

  • @umernasir4217
    @umernasir4217 Před 7 měsíci +1

    What's the font you're using for VS Code? Awesome Content BTW ❤

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

      Thank you! I use Cascadia Code: github.com/microsoft/cascadia-code

  • @sumanmodak7859
    @sumanmodak7859 Před 6 měsíci +2

    This is the worst ever framework when used with typescript. The developers have spoiled the documentation by including so many topic in a staggered way.

    • @Jaood_xD
      @Jaood_xD Před 6 měsíci +1

      Do these two sentences correlate?

    • @luca4479
      @luca4479 Před 5 měsíci

      Its fine. Once ElysiaJS reaches 1.0 I’m rewriting