Overview
- JWT Authentication & Admin Role.
This course provides an introduction to creating a Node.js REST API using Fastify. It covers the installation and setup of Fastify, basic server setup, creating basic routes, using VSCode's REST Client for testing, using data files for retrieving and writing data, separating routes into a separate file, using options, validation schemas and handlers, creating a controller, using Fastify Swagger for API documentation, adding an item via a POST request, validating the body of the request, deleting and updating items, and authentication using JWT and the admin role.
Syllabus
- Intro.
- Install & Setup.
- Basic Server.
- Create a Basic Route.
- VSCode REST Client.
- Data File.
- Separate Routes File.
- Options, Validation Schemas & Handlers.
- Creating a Controller.
- Fastify Swagger API Documentation.
- Add Item POST.
- Body Validation.
- Remove Item DELETE.
- Update Item PUT.
Taught by
Traversy Media
Reviews
5.0 rating, based on 2 Class Central reviews
Showing Class Central Sort
-
A great course for beginners to understand the basics and the fundamentals of fastify
also the architecture of the framework which based on plugins
great course ! -
as an entry level course covers all required topics in a good pace and gives an overview to start with the great fastify framework. I have hands-on experience with fastify and this was cool for beginners to get enough data to start. I'm interested in more advances topics from the same instructor