Learn The MERN Stack - Express & MongoDB Rest API

Поделиться
HTML-код
  • Опубликовано: 30 ноя 2024

Комментарии • 546

  • @TraversyMedia
    @TraversyMedia  2 года назад +232

    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.

  • @yashodhadhanushka1415
    @yashodhadhanushka1415 Год назад +75

    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*

    • @schoolWork200
      @schoolWork200 Год назад

      I think we can also do await Goal.findByIdAndDelete(req.params.id);

    • @budysutjijati
      @budysutjijati Год назад

      Hi @yashodhadhanushka1415, .findByIdAndRemove() seems better.

    • @NdubuishiUlenu
      @NdubuishiUlenu Год назад

      I encountered this problem and it took me nearly an hour to figure it on my own using chatGPT, I should have just found my way to the comments😫😥

    • @jaywinebrenner
      @jaywinebrenner 9 месяцев назад +1

      Thank you for this!

    • @awakenwithoutcoffee
      @awakenwithoutcoffee 8 месяцев назад

      fistbump.

  • @salimsuleiman7984
    @salimsuleiman7984 2 года назад +451

    Brad never disappoints, he must be protected at all costs

    • @charlesowusu3958
      @charlesowusu3958 2 года назад +16

      People from Africa will understand this better ❤️

    • @kaypakaipa8559
      @kaypakaipa8559 2 года назад +19

      This guy taught me everything lol.
      I literally have a job at a major company as fullstack dev bcoz of his videos.

    • @wasimraja2980
      @wasimraja2980 2 года назад +1

      Protect from whom ?

    • @sanjaybatak3549
      @sanjaybatak3549 2 года назад +1

      Mans always protected.

    • @bytegraftkids
      @bytegraftkids 2 года назад

      Your comment is hilarious 😂

  • @hamzahmd_
    @hamzahmd_ 2 года назад +55

    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.

  • @UrCloud2
    @UrCloud2 2 года назад +52

    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

    • @riyadulislam2220
      @riyadulislam2220 2 года назад +1

      still wokring remove() method too . however, Thanks a billion for your comment

    • @bytegraftkids
      @bytegraftkids 2 года назад +3

      Such updates make you want to pull at your hair

    • @jerryrodriguez6151
      @jerryrodriguez6151 Год назад

      I ran into this issue and searched the comments to see if anyone else had the same issue. You're a legend! Thanks so much!! This resolved it for me.

    • @tomislavbusic2652
      @tomislavbusic2652 Год назад

      Thanks!!😁

    • @ephphatha230
      @ephphatha230 Год назад

      life saver 🥰

  • @pranansubba9587
    @pranansubba9587 2 года назад +3

    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 RUclips and then I started to learn. Now I'm doing Job. Thanks Brad.

  • @archimedesrocha
    @archimedesrocha 2 года назад +43

    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.

    • @TraversyMedia
      @TraversyMedia  2 года назад +11

      No problem at all. I hope this series helps :)

  • @thinkverse2672
    @thinkverse2672 Год назад +7

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

  • @mykalimba
    @mykalimba 2 года назад +48

    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).

    • @hafizadeel493
      @hafizadeel493 2 года назад

      Helpful Thanks

    • @pmaruf42
      @pmaruf42 2 года назад +1

      Hi, I tried a lot but I don't know why my error overwriting was not working. It was showing the same html error. Can you help me?

    • @-ygdrayko2029
      @-ygdrayko2029 2 года назад +5

      @@pmaruf42 i had the same problem you need to put the app.use(errorHandler) under the route of /api/goals

    • @pmaruf42
      @pmaruf42 2 года назад +1

      @@-ygdrayko2029 Tried that. But yet not working

    • @mayor3367
      @mayor3367 2 года назад

      @@pmaruf42 Were you able to solve your problem?

  • @jlambert12013
    @jlambert12013 2 года назад +3

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

  • @pliniojr95
    @pliniojr95 Год назад +1

    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.

  • @kalyanboro6338
    @kalyanboro6338 2 года назад +2

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

  • @Dexilic
    @Dexilic Год назад +15

    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!

  • @andrewbartson482
    @andrewbartson482 2 года назад +3

    Brad, it's really helpful how you explain things as if I'm sitting next to you, giving a few tangential comments that give the context. After you write the code and describe what it does, I can finally wrap my mind around stuff that previously was confusing. For example, from your explanation of error handling plus some studying on my own, I discovered it's not that complicated, and I'm one step farther on the path to excellence.

  • @ramibasheer7002
    @ramibasheer7002 Год назад +1

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

  • @daedrikaskhan
    @daedrikaskhan 2 года назад +2

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

  • @MarsTheProgrammer
    @MarsTheProgrammer 2 года назад +3

    If you are on a mac and for some reason port 5000 is already being used it may be AirPlay using the port (via the new update). Do the following command "lsof -i :5000" and if you see something like CommandCE then it is being used by AirPlay. Start using port 5001 instead.

    • @RameshKumar-mv3jd
      @RameshKumar-mv3jd 2 года назад

      Or if you don't use AirPlay you can go to "System Preferences > Sharing" and disable "AirPlay Receiver".

  • @dileep_hegde
    @dileep_hegde 2 года назад +17

    Hey Brad, It would be great if you configure typescript for the backend or use modern JavaScript (module) for this project. Import/export and so on

  • @Opacity5
    @Opacity5 2 года назад +2

    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!

  • @PD_Patrice
    @PD_Patrice Год назад

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

  • @shawngardiner2604
    @shawngardiner2604 2 года назад +3

    Hey Brad, I can't even begin to tell you how much you have taught me through your channel and Udemy courses I have bought, Just finished the back end two videos as a refresher, and the way you laid this out with the Models and Controllers part of the MVC pattern is just first rate. Also the fact that this can be used for all frontend libraries. I'm working on integrating with PHP, SQL, and Firebase just to see the layout. But again great work as usual.

  • @EliasJovancicPersson
    @EliasJovancicPersson 2 года назад +6

    amazing tutorial, finally i am able to understand express and mongo. Thanks!

  • @bohdankhv
    @bohdankhv 2 года назад +3

    That's just what I'm learning. Focus on mern this year. Thanks so much Brad, I've been following you for 4 years now!

  • @tr3d4y
    @tr3d4y Год назад

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

  • @ronaldbrunsen
    @ronaldbrunsen Год назад

    You give the best tutorials on youtube. You never skip steps and explain every detail. It's so good for people actually trying to learn.

  • @rj_nelson_97
    @rj_nelson_97 2 года назад +2

    Extremely valuable tutorial from start to finish. I've been looking for an updated tutorial on the MERN stack. Thank you for providing. I'm looking forward to the next one.

  • @elektra81516
    @elektra81516 2 года назад

    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!

  • @moses_githinji
    @moses_githinji 2 года назад +1

    Great to see this man teaching. God bless you abundantly Brad.

  • @mohammedziou
    @mohammedziou 2 года назад

    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

  • @naveenkumar7617
    @naveenkumar7617 Год назад

    This is by far the best MERN stack tutorial video I've seen on YT. The way you explain is legit bruh!!

  • @taiwoadedayo624
    @taiwoadedayo624 Год назад +1

    It's a wonderful time to thank Brad for the journey so far. Here I am learning Node.Js from the very same man that helped me with HTML, CSS & Js

  • @vishalkaushik9133
    @vishalkaushik9133 2 года назад +1

    your content is excellent on youtube very good quality and professional work kudos

  • @SUNYBOI
    @SUNYBOI 2 года назад +1

    You teach like Indians, they also explain everything and you also explain everything and makes these technologies much much easier. I know by the end of this course I will have a strong MERN foundation. ❤️

  • @nemeziz_prime
    @nemeziz_prime 2 года назад +3

    Brad's explanations and clarity in teaching are top notch 👌🏻🔥

  • @i_am_josh
    @i_am_josh 2 года назад +1

    Getting pumped to watch this video. Thanks for highlighting the fat that you want your channel to be a broadcast for people to learn new frameworks and technologies. Thanks for the great content 🙏

  • @yajirushik2871
    @yajirushik2871 2 года назад

    For 8 days i have learning Node and MongoDB basics. After that I feel like I don't know enught and oh Man, i have found this tutorial and I love it from start. Without learning basics I probably won't be able to understand how this stack works but now I understand every concept also learning new things. I have worked with React for few months so I'm not an sbsolute beginner but within 2 weeks I have moved from front to full-stack, I have also learned about JWT(at front point) before starting backend learning. Thank You for this stellar course. 🚀

  • @ninjacat959
    @ninjacat959 2 года назад +3

    55:26 I actually did it by myself so I feel like I'm learning that was a good part to add in.

  • @aleumkim3844
    @aleumkim3844 2 года назад

    you are so great. I spend more than 4 hours to figure out the way of kind of it.. Finally,, u save my life Thanks

  • @nabinsaud4688
    @nabinsaud4688 2 года назад +2

    You never compromise your student audience interest you know what we need ❤

  • @lifeform106
    @lifeform106 2 года назад

    Wow that background lighting looks amazing brad! Thanks for the geat content! :D

  • @nathantorquato9777
    @nathantorquato9777 2 года назад +2

    That's great stuff, mate. You're such a great teacher!

  • @hanifbahari6606
    @hanifbahari6606 2 года назад +1

    Amazing, could not be more understandable and easy to follow. Thanks a lot!

  • @syntaxed4365
    @syntaxed4365 2 года назад +3

    Great stuff as usual, Brad! Apologies, I smashed the like button a bunch of times, but alas it only counted one. You're an absolute beast! Keep it up, man!

  • @marufmarzuq
    @marufmarzuq 2 года назад +2

    Thank you Brad for starting this full stack series. ❤️

  • @androidincredible
    @androidincredible 2 года назад +1

    Was thinking about learning mern stack and got the notification on the right time. Thanks ❤️

  • @renujadecosta6408
    @renujadecosta6408 2 года назад +15

    Learned the MERN stack from you from your E COMMERCE COURSE on Udemy..and now I work as a MERN stack developer full time... That course of Brad really takes from ZERO to HERO of MERN STACK.. Thanks a lot BRAD for that course

    • @huseyinkara123
      @huseyinkara123 2 года назад

      Hi, which course you learned?

    • @yehannk448
      @yehannk448 2 года назад

      which course please

    • @renujadecosta6408
      @renujadecosta6408 2 года назад

      @@huseyinkara123 MERN stack E COMMERCE course on Udemy..

    • @renujadecosta6408
      @renujadecosta6408 2 года назад

      @@yehannk448 E commerce MERN stack course on Brad's udemy ... Tbh ..that course literally changed my life..Man I feel like I should give like $100 for that course..

    • @TR1ckY_TV
      @TR1ckY_TV 2 года назад

      @renuja de costa
      Can't u provide the link?!!

  • @tresthegoat
    @tresthegoat 2 года назад +3

    If you have issues with "text" not being defined around the 28:00 mark, make sure you're middle ware is above your route setup.

    • @hcnabd
      @hcnabd 9 дней назад

      tysm

  • @David-mp2jt
    @David-mp2jt 2 года назад

    Shame on me for ignoring your videos for so long. You Sir are brilliant, thank you for your time!

  • @keshavakumar9828
    @keshavakumar9828 2 года назад

    i aquired colossal amount of knowledge from single video. 1 video down 3 more to go. thank you for this awesome content.

  • @aninda1988
    @aninda1988 2 года назад

    God bless you. I just hope from the bottom of my heart that you dont fall sick anymore. It breaks my heart when you say that you have been sick.

  • @lingling5128
    @lingling5128 2 года назад +1

    33:56 if the .env is not recognized just add a path to .config for example require('dotenv').config({ path: '../.env' })

  • @tanishqawasthi8586
    @tanishqawasthi8586 Год назад

    You are really one of the best when it comes to web development tuturials on the web. Thanks a lot!

  • @dilucsuki8470
    @dilucsuki8470 2 года назад +2

    7:21 to avoid having to acept everything after `npm init` you add the -y flag. `npm init -y`

  • @tigana
    @tigana Год назад +1

    Thank you this tutorial really cleared some things up for me. The part where you explained why we use the .env file + when you grabbed the connection string from atlas were lightbulb moments

  • @Shelinz1
    @Shelinz1 2 года назад +1

    its like you always know what we need at the right time. God bless you for all you do brad.

  • @JohnAdamTurnbull
    @JohnAdamTurnbull 2 года назад +1

    Great video. Really well designed learning path. Nicely paced and clear. Thank you.

  • @BUNNYGAMING-kl7tm
    @BUNNYGAMING-kl7tm 2 года назад

    Buddy Thanks when I face issues I always remember you starting as beginner to experience you're videos and you're lessons .

  • @zakur0hako
    @zakur0hako 2 года назад

    This is perfect i've just started rebuilding my old MERN project after a year old break from coding and forgot a lot of things

  • @toshempire8296
    @toshempire8296 Год назад

    One thing i like with channel is that you dont need to go searching for more explanation

  • @suciu4644
    @suciu4644 2 года назад

    man your code is just something else, you are so clean, I am so impressed

  • @designsrs
    @designsrs 2 года назад +1

    Worth watching at 3 in the morning ❤️❤️ #bradalwaysrocks

  • @novailoveyou
    @novailoveyou 2 года назад

    High quality from the best teacher in the world for free, a gold mine
    Brad the GOAT

  • @adilmughal2251
    @adilmughal2251 2 года назад

    Thanks brad. I am learning node js from mosh Hamedani and now this video is amazing because it will strong my foundation of mern stack. Thanks alot bro. Keep making projects on mern.

  • @ronansibunga8148
    @ronansibunga8148 Год назад

    Your'e the man brad...please live as long as you want! Thanks for your easy to follow crystal clear tutorials. Your student from the Philippines!

  • @zeeoshani6204
    @zeeoshani6204 2 года назад

    you done such a great job I was totally beginner with APIs and mongoos I totally got it after watching your video, keep up this great work

  • @romantarnai4702
    @romantarnai4702 2 года назад

    Can't believe this course is free, big thanks to you

  • @kavindajayaweera6146
    @kavindajayaweera6146 2 месяца назад

    Thank you Brad..Superb stuff...Keep up the good work

  • @antoniuskonovalov
    @antoniuskonovalov 2 года назад

    Amazing tutorial, followed step by step. When I stucked, Google helped. Nice explanation.

  • @agutanful
    @agutanful Год назад

    This is awesome. I'm following along to redo a previous project (did not use mongoose) and, not only is this method way better, but Brad is an awesome host. Amazing content.

  • @stevenpoulin8205
    @stevenpoulin8205 2 года назад

    So glad you're doing this. Much love.

  • @vuongqtvn
    @vuongqtvn 2 года назад +1

    Brad is my idol, Thanks

  • @serg9888
    @serg9888 2 года назад

    Thank you very much, Brad! Great as always. I spent these couple hours coding along with a pleasure.

  • @banderamusicaltv
    @banderamusicaltv Год назад

    Brad this is the second time I take this same course, I hope I can learn memorize more stuff as I go through it this time , but I honestly want to thank you for your motivating me in to going to AA and looking into recovery from Alcohol , you are more than Mentor Sir Brad!

  • @vinrata
    @vinrata 2 года назад

    i just finished the tutorial! so awesome! complete CRUD backend tutorial, so cool, so many possibilities!

  • @inspirationalquotes5840
    @inspirationalquotes5840 2 года назад

    I just hit the like button, without watching the video. Thank you Brad

  • @mahdisalmanizadegan5595
    @mahdisalmanizadegan5595 2 года назад

    Brad you are the best teacher ever i had, so valuable course thanks man! keep up great vids.

  • @cloudagnostic
    @cloudagnostic 2 года назад

    Brad, this was great! Looking forward to watching the series.

  • @henrymunoz2035
    @henrymunoz2035 2 года назад

    Really enjoyed this kind of format. Thanks Brad

  • @bensonkamau2816
    @bensonkamau2816 2 года назад

    Thanks brad always have something to learn from you.. explanation and delivery is also the best

  • @scottsmyth3154
    @scottsmyth3154 2 года назад

    Thanks for all your videos man, they're great!

  • @studymaterial988
    @studymaterial988 2 года назад +1

    Thanks Brad for great content 😄♥️♥️

  • @unathinxasana1651
    @unathinxasana1651 Год назад

    Tank you very much Brad i needed this for my school project

  • @chrisdietrich1533
    @chrisdietrich1533 Год назад

    This is such a great resource! Thanks Brad.

  • @coderamrin
    @coderamrin 2 года назад +1

    as always, very helpful tutorial. thanks for creating these videos Brad

  • @VuDave
    @VuDave 2 года назад

    Brad you are amazing, thanks so much for all this free knowledge. you are literally saving my life with this channel

  • @amanberhane2657
    @amanberhane2657 2 года назад

    Love this content! Super helpful and has real application to the industry!

  • @annaatitech5908
    @annaatitech5908 2 года назад

    wow Man, how I have being waiting for this one, Thanks

  • @ryanmugo4206
    @ryanmugo4206 Год назад

    Great work....Understood everything you had said!!!! Thank you so much!!

  • @siddharthshinde8363
    @siddharthshinde8363 Год назад +1

    @56:06 replace remove() with deleteone(), as it is deprecated.

  • @governordog
    @governordog 2 года назад

    Thank you Brad. This series has motivated me

  • @migueltejeda3869
    @migueltejeda3869 2 года назад

    Brad, thank you so much. We really appreciate your time and knowledge for teaching us!

  • @davidemmanuel5057
    @davidemmanuel5057 2 года назад

    great video, I wanted to start learning this stack and this is a great first step

  • @EntangledFrequency
    @EntangledFrequency Год назад

    Very helpful to go through an actual example. Great info!

  • @jamalnaserhamzaei5806
    @jamalnaserhamzaei5806 2 года назад

    Extremely valuable tutorial Dear Brad, thank you so much!!!!

  • @FiveFourThor
    @FiveFourThor 2 года назад

    YOU'RE THE LEBRON JAMES OF CODING TUTORIALS

  • @khaledfarghly6480
    @khaledfarghly6480 2 года назад

    The best introduction tutorial to back-end ever, Thanks Brad ❤

  • @ashrafshehata6566
    @ashrafshehata6566 2 года назад

    this is the best tutorial i got for Mern stack

  • @lakshyarajdash
    @lakshyarajdash 2 года назад

    After learning mongodb, react and express I came upon this authentication project. Thanks brad for this awesome project.

  • @saajid5009
    @saajid5009 2 года назад

    I came online to get a Basic Knowledge about MERN Stack. And i RUclips Recommed Me Traversy's Latest Video.... Wht a Timing.. Thank You Brad. Thank You RUclips

  • @khalidelgazzar
    @khalidelgazzar 2 года назад

    Superb Tutorial. Thanks Brad