Plugins 101. Fastify web framework for Node.js. REST API Routes, .env, MongoDB.
➥ Repo: https://github.com/pragmatic-reviews/fastify-test/tree/fastify-plugins
Timestamps:
- Intro - 0:00
- Refactoring routes as a custom plugin - 0:40
- Fastify ‘after’ and ‘ready’ methods to handle plugin errors - 3:28
- Setting up Fastify Env plugin - 4:43
- Setting up MongoDB plugin and Fastify plugin - 6:48
- Using MongoDB plugin from routes - 10:33
- Outro - 12:16
#fastify #node #mongodb