Free YouTube views likes and subscribers? Easily!
Get Free YouTube Subscribers, Views and Likes

Building a RESTful API with Node.js Fastify MongoDB and Mongoose: Part 1

Follow
dolearning

In this video, we take a deep dive into building a robust RESTful API using Node.js, Fastify, MongoDB, and Mongoose. We go from an empty folder to CRUD capability on one of our resources.

Sections:
0:00 Introduction
0:18 Project Overview
0:39 Initializing with NPM
1:00 Setting Up Source Code Directories
1:46 Starting with User Resource & Configuring Fastify
2:40 Importing Routes & Controllers
4:28 Writing Controllers & holding CRUD Operations
7:40 Creating User Model in MongoDB with Mongoose
9:40 Connecting to Database
11:18 Implementing CRUD Operations in User Controller
14:03 Testing Our API with CRUD Operations
15:36 Wrapping Up & What's Next
16:45 Outro

Throughout the video, we cover topics such as creating a database schema with Mongoose, configuring Fastify as our web framework, initializing with NPM, and setting up our routes and controllers. We'll also show you how to implement full CRUD functionality for the user resource.

This video is perfect for beginners looking to understand the basics of RESTful API development using Node.js, as well as experienced developers looking to brush up on their skills. In future videos, we will expand on this project by adding additional resources, authentication, authorization, and testing. Don't forget to check the repo link in the description below for all the code used in this project.

Here's the repo: https://github.com/doingandlearning/b...


Leave your questions in the comments below, and see you in the next video!

Twitter:   / dolearning  
Sign up for my newsletter to make sure you don't miss the next video: https://kevincunningham.co.uk/newsletter

posted by Naibot2