Learn The MERN Stack - Express & MongoDB Rest API

preview_player
Показать описание

💻 Code:

👇 Full React 2022 Course With $12.99 promo:

👇 Website & Courses:

💖 Show Support

👇 Follow Me On Social Media:

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
Рекомендации по теме
Комментарии
Автор

As far as the schedule for this series, the second video will be uploaded soon. Probably a couple days. The 3rd and 4th frontend videos will be within 1 - 2 weeks.

TraversyMedia
Автор

At around 55:58 if anyone has a problem with 'await goal.remove()' you can replace 'await goal.remove()' with 'await goal.deleteOne()'
*The remove method is deprecated in Mongoose 6 and has been replaced with deleteOne or deleteMany methods*

yashodhadhanushka
Автор

Brad never disappoints, he must be protected at all costs

salimsuleiman
Автор

56:00 remove() method is now deprecated, you can now use deleteOne() method along with the id of the goal

thinkverse
Автор

Brad, I got web development expertise because of your tutorials/Udemy courses and that has enabled me to work on real-world projects. Thank you so much, Brad. I love the style of your teaching. You really are an asset to this dev community.

hamzahmd_
Автор

Dear brad, thanks for making this video. I’d like to tell the viewers that the remove() method from mongoose is depreciated and it’s recommended to use the deleteOne() method that takes an id as object

UrCloud
Автор

In one interview I mentioned your name, when he asked me why I ended up in xyz framework. I told him because I found Brad video on YouTube and then I started to learn. Now I'm doing Job. Thanks Brad.

pranansubba
Автор

34:05 Pro Tip: If you don't want the returned JSON to even show a "stack" property in production mode, set the property value to "undefined" in the error handler (instead of "null", line 8 at 32:30).

mykalimba
Автор

Brad thank you for share a excellent serie for backend devs.
I'm still learning frontend but I already see the need to integrate database to my projects more and your videos will definitly help a lot.

archimedesrocha
Автор

Traversy Media is the only youtube channel brand I could wear without shame.

daedrikaskhan
Автор

I've seen a lot of videos about mern, but eventually i would get lost watching them. Your video was the first that kept me on track, especially about the mongo and mongoose part. Thank you, looking forward to see the next videos.

pliniojr
Автор

At around 56:02 just so anyone who's having a problem with goal.remove, it's been deprecated and you can now use goal.deleteOne() instead. Hope that helps!

Dexilic
Автор

I have been learning from you since 2016. Your are one of the best teachers on youtube. Thank you for your selfless service sir!!

kalyanboro
Автор

Literally woke up this morning and thought, I’m going to do a MERN stack application today, went to YouTube and saw this! Thanks, Brad!

jlambert
Автор

Brad I am a Staff Engineer at Google now thanks to the videos I've watched from you over 8 years. thank you

trdy
Автор

i've watched alot of vids about MERN Stack, and this one is by far the best one!!
thank u so much!!

ramibasheer
Автор

This is by far the best walkthrough I've found on MongoDB on youtube. Thanks Traversy Media

PD_Patrice
Автор

the best thing about this tut is that it's up to date, and i didn't have to deal much with the npm packages

mohammedziou
Автор

I have already completed two of his mern course from udemy. i am watching these as a refresher in free time. thanks brad as always!

Opacity
Автор

This whole channel is responsible for my fascination for web and app dev! What started as a simple interest in making a portfolio website has expanded into learning Tech Stacks and all kinds of frameworks!

elektra