Masterclass | Unlocking Node.js' Power: A Journey into Fastify and Beyond
ฝัง
- เผยแพร่เมื่อ 23 ส.ค. 2024
- Looking to learn more about the key principles of extensible architecture?
You're in the right place. In this masterclass, we take a deep dive into:
‣Fastify’s design principles & low-overhead philosophy
‣How to build modern Node.js & Fastify backends
📝 Key resources
1) Downloading Meraki: github.com/pla...
2) Learn Fastify: github.com/pla...
3) Close with grace: github.com/mco...
⏲️ Timestamps
00:01:56 Masterclass starts
00:07:00 The Fastify Community
00:12:05 Let's Get Started
00:49:51 Validations
00:58:35 Hooks and Decorations
01:05:40 Plugins and Encapsulations
1:11:06 Platformatic
1:25:54 Introducing Meraki
Great tutorial sir, thank you!
Master in MasterClass! A Question btw. When I should Platformatic runtime?
How to start a app with what?
`platformatic start` will start your application on top of platformatic runtime.
@@platformatic I mean to say if would want to start a new project with multiple services.
Then which service should be used? Patformatic runtime or Platformatic service?
Please do more examples with testing, why decorators are better and how to test it properly. Also would like to see if plugin connects to db during initialisation, how do we handle this in tests?
Take a look at th-cam.com/video/g-6Ig8k6Nzc/w-d-xo.html, it explains why Decorators are better.
There are a few testing strategies for plugins that requires db. We prefer to run the full app for the tests (at least for the critical paths), so we send payloads to the incoming routes. You could also spin up a Fastify instance with just that plugin, and wire all the dependencies yourself - this is very useful if you are doing mock testing.
Hey bro, how about we don't chew gum during a presentation?