Fastify Course 🚀 The Performant Node.js Web Framework

Fastify Course 🚀 The Performant Node.js Web Framework

21.960 Lượt nghe
Fastify Course 🚀 The Performant Node.js Web Framework
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: [email protected] Twitter: https://twitter.com/nikelaz LinkedIn: https://www.linkedin.com/in/nikola-lazarov #fastify #nodejs #course