Learn The MERN Stack - Express & MongoDB Rest API

Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

Overview

Added

March 17, 2026

Subject & domain

computer-science-fundamentals ยท web-development

Grade range

Grade 9 (Freshman)โ€“Grade 12 (Senior)

Page kind

Video

Keywords

MERN MERN Stack react express mongodb mongoose learn the MERN stack javascript node.js REST REST API RESTful API Express API CRUD API API

Introduction

In this video, we will create a RESTful API from scratch with Node.js, Express, MongoDB and Mongoose.

๐Ÿ’ป Code:
https://github.com/bradtraversy/mern-tutorial

๐Ÿ‘‡ Full React 2022 Course With $12.99 promo:
https://www.udemy.com/course/react-front-to-back-2022/?couponCode=REACTF2BFEB2022

๐Ÿ‘‡ Website & Courses:
https://traversymedia.com

๐Ÿ’– Show Support
Patreon: https://www.patreon.com/traversymedia
PayPal: https://paypal.me/traversymedia

๐Ÿ‘‡ Follow Me On Social Media:
Twitter: https://twitter.com/traversymedia
Instagram: https://www.instagram.com/traversymedia
Linkedin: https://www.linkedin.com/in/bradtraversy

Timestamps:
0:00 - Intro
2:41 - How a REST API Works
6:13 - Set up the Project Folder
10:11 - Initialize GIT & Commit
10:46 - Basic Express Server
12:12 - Environment Variables
13:28 - First Route
15:51 - Routes File
20:34 - Creating a Controller
24:44 - Connecting Controller Functions
26:40 - Accepting Body Data
28:41 - Error & Exception Handling
34:21 - Express Async Handler
36:46 - Create MongoDB Database
42:02 - Connect with Mongoose
47:02 - Create a Model
49:35 - Get Goals
51:30 - Create Goal
52:56 - Update Goal
55:22 - Delete Goal

Community reviews

No published reviews yet. Be the first to share your experience.