Few tips to know for the first part ( Express) 1.) Watch-out for spelling of "Excercise", they have used "Exercise" 2.) While whitelisting IPs at Atlas, you'll have to whitelist all IPs if your ISP provides a dynamic IP i.e. those IP's which change often.
Very helpful tutorial for MERN stack. One issue I faced while doing it was that 'It wouldn't connect from my personal IP to MongoDB Atlas'. I was able to fix that issue by changing the network access setting in MongoDB to allow IP address from anywhere. If you are facing same problem fix it that way. PS: If you are having problem with him pasting code, you shouldn't be here. I believe this tutorial is for those who have the basic understanding of ReactJS, nodejs and express. Coding everyline would make it extremely long and hence uninteresting. You can learn the basics from other channels and come here.
Really awesome tutorial. We've just gotten to the point in our bootcamp where we're tying together all the skills we've learned so far (i.e. the MERN stack), and this video explained how to connect everything in quickly and concisely. Thanks, Beau!
7/11/2022 Here are the issues and the fixes I ran into while following along, none of them were very severe and all but the last one was solved quickly. Error at 17:50 line 14 I was getting errors when I included the flags in mongoose.connect(), just pass the uri as the only argument. Error at 1:15:23 if nothing is appearing in the console, then that is probably because the page was refreshed when the form was submitted. All you need to do is go into the top right of the inspect panel, there should be two gears click on the lower gear for setting and select "preserve log", this will stop the console from refreshing. The final error I got is at 1:45:13 and says "params is not defined", for whatever reason you can't reference params like that anymore and idk how to get around it without making the component a function. The alternative solution is to grab the url in the search bar and snag the id that way. In edit-exercise.component.js go to componentDidMount() at the top paste "const arr = window.location.href.split('/');" This creates an array consisting of every step in the url path of our current page. Then in the axios.get() call replace this.props.match.params.id with "arr[arr.length-1]". This gets the last element of our array which happens to be the id of the exercise that we are editing. The ID is what we need to make correct calls to MongoDB. Do the same thing for the onSubmit function in the same file. (The final solution is not saleable, the more branching paths there are in the url, the harder it will be to maintain. If anyone knows a better solution, please let me know because honestly this one feels pretty hacky) Hope this helps someone!
This tutorial actually just saved my grade. Needed a way to post text from state to my db and fetch all entries and you saved my life thank god for you
I took the complete lessons and i new nothing before starting this lecture on MERN. What a fantastic teacher sir you are. Lots of prayers for you. Regards
1:15:26 My console log kept clearing because of the redirect (window.location='/') inside the onSubmit method. I could see something was logging, but it would quickly disappear. So... to fix this (on chrome), I had to click on the settings in my console log and click preserve log.
Great Tutorial! Something I would like to say is that on 01:39:00 you said the difference between Class Components and Functional Components in React is that functional components don't support state and lifecycle methods which is not true anymore. You may use useState, useEffect and ... in functional components and they are even the preferred method these days. Thank you
This tutorial walks through the whole freaking process. Great tutorial. Thank you so much for this. I'm broke else I would've joined your channel as a sponsor.
Thanks for such a great video sir. I learned a lot. Solution to only problem i faced in this tutorial: Those people who are getting error saying "MongoDB Network error: net:err connection refused" something like this, please try to run "nodemon server" on one separate terminal and also run "npm start" on second terminal . If issue still persists , then please whitelist your IP on MongoDB atlas portal or just update the setting to "allow network access from anywhere"
Hi Beau. I'm a totally beginner to MERN stack (coming from LAMP one) I have a MERN project to dive in and, fortunately, it seems that previous developers build it the way you described in your video. Then I feel so much more confident after only two hours seeing your video that I wanted to thank you sincerely! I didn't knew about this channel but now I'm hooked. Thanks!
Thank you for everything. I just had a problem setting up cors, idk why every tutorial dont get the problem, luckily i solved it, everything else went smooth. thank you
im learning english and programming at the same time , and i have to say thank you because you have a very good pronunciacion that allows me to understand everything.
Me too! Também estou aprendendo programação e ingles ao mesmo tempo haha. Só procuro vídeos de programação nesse idioma, um dos requisitos é ter uma boa pronúncia
Man you're awesome. I am not native in english, yet I understood everything you said! I wish all teachers could be as patient when talking as you. Great course.
You guys really rock! Education for free is one of the best weapon to decrease inequalities, nevertheless everybody talks about fighting it, but only a few really act against. And you're one of the few, thank you so much!
I noticed the default in the Datepicker value became 1970-01-01... to make the default value more recent, I just slapped in Date.now() on the Datepicker's 'selected' property. Viva freeCodeCamp too!!
This is the best video of all things for start as a MERN stack developer. I am really grateful to you and the way you have explained is far better than anything. Thank you so much for the great project!!
THANK YOU BEAU CARNES.. Just Completed the Course..Your MERN Course is very good..I enjoyed it a lot..Just Started the MERN Stack and this helped me a lot in getting started with mern stack..Again Thank You soo much..:)
Beau you are such a lifesaver I feel like 90% of my knowledge comes straight from you and it breaks down all those complicated concepts everyone else overcomplicates
this video is great, but it's definitely showing its age. You need to do some digging to get the hang of how things work now but, figuring it out on your own can be a pretty sweet learning experience.
Gracias por el tutorial, en pleno 2022 me pongo a aprender recién MERN, tuve algunos problemas durante el curso por algunas librerías nuevas que se instalaron en lugar de usar las librerías del año 2019, pero pude solucionar todos los problemas y me funciona, excelente vídeo 😎
Great content. I've done in-depth learning from an online platform. I like how this is summarized with good explanations. Like others have indicated, a more in-depth tutorial for intermediate and advanced programmers would help
Yeah, the author is not using REST, as well as the newer mongoose functions like updateOne() and replaceOne(). That is not a lot to learn, though, and builds on some stuff from the video.
There are some issues because of the version updates. But still, Great Course. Very Clear. Loved it. ❤ Going to watch new version of this course now. Thanks!
Thank you Beau, this is the first project that I completely followed through. I really like the selected information you gave, they are very on point. And thanks the comment section for very helpful information too.
1:09:12 sir you used bind(this); I saw another way to bind the methods to class by using arrow function. For eg onChangeUsername=(e)=>{...} It works fine. Is there any specific reason, why you use bind over arrow function. If there is ,please tell me? And your tutorial is very easy to follow. Thanks sir 😀
Hah! So, I enjoyed this tutorial quite a bit. I noticed the 123 Main Street, Grand Rapids MI and found that you and I both worked at a local coding bootcamp out here! Small world!
Very good tutorial for beginners. Suggestion: Folder structure is very important for big projects. If these tutorials also include that will be very helpful. eg: Suppose If we have a lot of routes. If we write it in server.js file it will be very difficult to read. These are small things which have a big role when the project grows.
1:08:55 , instead of using the normal functions and the binds in the constructor, you could use the arrow functions instead and 'this' won't be undefined, i tried it and it worked but i'm not sure if it has unwanted consequences ✌.
Thanks for the tutorial! For anyone else wondering why their navbar doesn't vertically expand on smaller screens: Remove the "collapse" class from line 10 of navbar.component.js. I didn't notice while following along but Beau's code has a typo ("collpase") @ 55:23, which actually turned out to be beneficial for the end result lol.
If anyone else got stuck at 20:35 with some errors, you need to encode your password before insert it in the connection string, or you could also use the auto-generate it from user configuration in database-access page from mongodb site. And also, in the network access, add your IP.
Thanks Beau! Recommended video, although classes in React are not used anymore, at least not in general. But for a beginner, it is a very useful tutorial. I hope to see an updated MERN course using hooks soon! Best of luck! God bless! :)
You made my new year rocking.Thanks for this detailed video.I was so confused about how to connect frontend with backend and here you go, so real smooth and i actually sat for 12 hours seeing just a 2 hour video, coded along with you, and understood the whole concept. faced problem in establishing mongoDB successfully but googled it so high for 2 hours and fixed it.& the sol was just to add the ip whitelist. one problem is still on, like i can't see the process in console, it comes with error like server disconnected, but sometimes it works . can you give me the sol. for this. i will be grateful & HAPPY NEW YEAR :)
I'm getting a 500 error when attempting to submit a user via post request at 31:20. Has anyone run into this? "TypeError: Cannot read property 'username' of undefined"
Same here. Have you figured out why it's causing this? I turned required to "false" and I was able to at least save (mind you it didn't save the username being passed in).
This is awesome. Thank you so much. It's exactly what I wanted to learn, and it was explained very well. My mind is really blown by the idea of doing all the API requests from the browser, rather than a whole page being returned. Question for anybody: how would you add authentication into this app? Middleware on the backend?
Jan 2023: If you get a white screen instead of UI at 1:00:00, you have to downgrade the react-router-dom version to ^5.0.0 in your pacakge.json to use the syntax explained in this video.
Awesome video. First time I see how things interact. Im new to React and getting into Node and the rest of the MERN pack. This helps a lot to understand how are things done between this technology. Thank you
If anyone is not getting the "MongoDB connection successful" message; 1. make sure you are in "cd backend" when you do "nodemon server". 2. make sure you remove the "" symbols from "" in the database connection string. 3. make sure your username and password is for the atlas CLUSTER not your mongoDB account. Also it should have no special characters
He doesn't code line by line but in my opinion he always explains very clearly what the code does. Just pause the video and copy it out for yourself. Or - even better - listen to his explanation then pause and try to do it yourself, referring back to his code only if you are struggling.
⚠️ There is a new version of this course: th-cam.com/video/mrHNSanmqQ4/w-d-xo.html
Would you recommend watching both?
Or does the new version cover exact the same but just up-to-date?
@@jgv4945 up to date of course.
@@ihsannuruliman3656 not a valid answer to my question. So you didn't understand it.
@@jgv4945 alright sir
Thank you very much.
Backend(Express): 12:02
Frontent (React): 43:32
Connecting Frontend to backend : 1:19:40
Few tips to know for the first part ( Express)
1.) Watch-out for spelling of "Excercise", they have used "Exercise"
2.) While whitelisting IPs at Atlas, you'll have to whitelist all IPs if your ISP provides a dynamic IP i.e. those IP's which change often.
@@PriyeshuGarg The correct spelling is "exercise".
@@PriyeshuGarg LOL
@@falconnaman9979 my whole schooling was a lie 😂
@@PriyeshuGarg I cannot thank you enough for the second point. The authentication error was driving me crazy.
I like the title. I have seen that somewhere before...lol
@Traversy Media We love your work!
@Traversy Media love the way you teach brother. you kind of my first programming teacher. lots of love from india.
Traversy Media is here, Nice
@Traversy... hypnosis time...
you have not seen anywhere... you have not seen anywhere... you have not seen anywhere... =)
Ha!
Very helpful tutorial for MERN stack.
One issue I faced while doing it was that 'It wouldn't connect from my personal IP to MongoDB Atlas'. I was able to fix that issue by changing the network access setting in MongoDB to allow IP address from anywhere. If you are facing same problem fix it that way.
PS: If you are having problem with him pasting code, you shouldn't be here. I believe this tutorial is for those who have the basic understanding of ReactJS, nodejs and express. Coding everyline would make it extremely long and hence uninteresting. You can learn the basics from other channels and come here.
Really awesome tutorial. We've just gotten to the point in our bootcamp where we're tying together all the skills we've learned so far (i.e. the MERN stack), and this video explained how to connect everything in quickly and concisely. Thanks, Beau!
if you don't mind me asking, which bootcamp did you go to?
I am now in love with the MERN stack. Thank's for the introduction Beau!
This is the most short, complete, clear and beautiful MERN crash tutorial, thanks a lot.
Hopefully to keep watching tutorials like this one.
7/11/2022 Here are the issues and the fixes I ran into while following along, none of them were very severe and all but the last one was solved quickly.
Error at 17:50 line 14 I was getting errors when I included the flags in mongoose.connect(), just pass the uri as the only argument.
Error at 1:15:23 if nothing is appearing in the console, then that is probably because the page was refreshed when the form was submitted. All you need to do is go into the top right of the inspect panel, there should be two gears click on the lower gear for setting and select "preserve log", this will stop the console from refreshing.
The final error I got is at 1:45:13 and says "params is not defined", for whatever reason you can't reference params like that anymore and idk how to get around it without making the component a function. The alternative solution is to grab the url in the search bar and snag the id that way. In edit-exercise.component.js go to componentDidMount() at the top paste "const arr = window.location.href.split('/');" This creates an array consisting of every step in the url path of our current page. Then in the axios.get() call replace this.props.match.params.id with "arr[arr.length-1]". This gets the last element of our array which happens to be the id of the exercise that we are editing. The ID is what we need to make correct calls to MongoDB. Do the same thing for the onSubmit function in the same file.
(The final solution is not saleable, the more branching paths there are in the url, the harder it will be to maintain. If anyone knows a better solution, please let me know because honestly this one feels pretty hacky)
Hope this helps someone!
of course help thanks a lot my friend and yes that solution is not stable but works (id)
This tutorial actually just saved my grade. Needed a way to post text from state to my db and fetch all entries and you saved my life thank god for you
I took the complete lessons and i new nothing before starting this lecture on MERN. What a fantastic teacher sir you are. Lots of prayers for you. Regards
Been looking for a beginner tutorial that was more recent, perfect timing!!
1:15:26 My console log kept clearing because of the redirect (window.location='/') inside the onSubmit method. I could see something was logging, but it would quickly disappear. So... to fix this (on chrome), I had to click on the settings in my console log and click preserve log.
Thank you very much! I was wondering how to get it fixed.
Thank you very much!
On firefox you can do the same things too, in the console log click the settings button and check the persist log
Nice observation Laura, thanks ;)
Thank you sm
Great Tutorial! Something I would like to say is that on 01:39:00 you said the difference between Class Components and Functional Components in React is that functional components don't support state and lifecycle methods which is not true anymore. You may use useState, useEffect and ... in functional components and they are even the preferred method these days. Thank you
yes. that is after the react hooks functionality has been implemented
This tutorial walks through the whole freaking process. Great tutorial. Thank you so much for this. I'm broke else I would've joined your channel as a sponsor.
Thanks for such a great video sir. I learned a lot.
Solution to only problem i faced in this tutorial:
Those people who are getting error saying "MongoDB Network error: net:err connection refused" something like this, please try to run
"nodemon server" on one separate terminal and also run "npm start" on second terminal .
If issue still persists , then please whitelist your IP on MongoDB atlas portal or just update the setting to "allow network access from anywhere"
You just saved me from 8+hours of googling brother, thanks to you. God bless your soul!
@@buraksurumcuoglu8303 glad to see it helped😁
Hi Beau. I'm a totally beginner to MERN stack (coming from LAMP one)
I have a MERN project to dive in and, fortunately, it seems that previous developers build it the way you described in your video.
Then I feel so much more confident after only two hours seeing your video that I wanted to thank you sincerely!
I didn't knew about this channel but now I'm hooked. Thanks!
hey there. how are you doing now? ru working on mern?
Thank you for everything. I just had a problem setting up cors, idk why every tutorial dont get the problem, luckily i solved it, everything else went smooth. thank you
how did you solve it.
the connection between front- and backend starts at 1:19:35 if you are interestet especially in that part
For people at 1:00:00 if your webpage does not render anything but a white screen, try replacing in App.js:
function App() {
return (
);
}
I think it has to do with the version of react-router-dom, but I am not sure.
yes
thanks :)
Had the same issue. Thank you! Also, don't forget to import routes from react-router-dom.
import { Routes } from "react-router-dom";
@@j-estrada can you help me to create mern project with crud operations i cant create update and delete
@@j-estrada Still white screen showing up
Can you help me out
im learning english and programming at the same time , and i have to say thank you because you have a very good pronunciacion that allows me to understand everything.
Me too! Também estou aprendendo programação e ingles ao mesmo tempo haha. Só procuro vídeos de programação nesse idioma, um dos requisitos é ter uma boa pronúncia
Eu tb, to aprendendo inglês e programação. Nunca fui fã de vídeos em português. Por aqui eles explicam melhor.
Thanks for this quick tutorial. Watched it in 1.5x speed. Now im feeling like Neo after he learned Jiu Jitsu :D
2x always
Ahah I love your comment ahah
Good call on increasing the speed
@Robin Rowiski and then realized it was just a computer program meant to teach you something about the Matrix
Hey can somebody please tell me how can I add authentication in this? Like login and signup page
I lol'd so hard every time he said "I'm just going to paste this here".
Hahaha
Man you're awesome. I am not native in english, yet I understood everything you said! I wish all teachers could be as patient when talking as you. Great course.
"Ok, so I'll go to this file........... I'll paste in some code"
Me: "FREAKING DAMMIT!!"
I have taken an online class and watched more then a few videos. You explain what everything is doing and I understand way more now. Thank you.
As a mobile app and AI and desktop dev, this is the most challenging frameworks that I've ever worked on even with practice.
I have learned so much from this channel that when I get a job I will definitely sponsor you guys. Love the amazing work you guys are doing.
I am an absoulter beginner is it a good video to start with???
You guys really rock! Education for free is one of the best weapon to decrease inequalities, nevertheless everybody talks about fighting it, but only a few really act against. And you're one of the few, thank you so much!
Finished!! I loved it! Viva freeCodeCamp!! I did add parseInt to the date to solve a problem:
date: new Date(parseInt(response.data.date))
I noticed the default in the Datepicker value became 1970-01-01... to make the default value more recent, I just slapped in Date.now() on the Datepicker's 'selected' property. Viva freeCodeCamp too!!
that 1 hour tutorial, learned in 1 week with still a little bit confusion on react, thankyou sir for such a great tutorial.
me too
Great tutorial, nothing wrong with copying and pasting code, he explains it all line by line after so i dont see the problem.
20:35 - Getting MongoDB error. Replaced useCreateIndex with useUnifiedTopology in server.js and now works.
Helped me out when I got stuck. Thanks!
Thanks a lot
Didn't know anything about react, but now I know more than before...thanks :)...pretty straight forward.
I feel like my head is going to explode but that was a great tutorial. Thank you!
Amazing Video. I love the clean code and explanation ... unlike other videos who spend most time typing and making mistakes in code.
Extremely useful! Loved this video and was able to grasp these concepts so quickly! Also served as a way to convince our friends that we were working!
hey Anish, does your code works perfectly?
nothing but to say thank you ,finally start understaning mern
You guys are simply awesome, thanks a zillion for this tutorial. God bless you
This is the best video of all things for start as a MERN stack developer. I am really grateful to you and the way you have explained is far better than anything. Thank you so much for the great project!!
At 1:22:45 when I try to create a new user, it tells me 404 not found, does anyone have the same error?
THANK YOU BEAU CARNES.. Just Completed the Course..Your MERN Course is very good..I enjoyed it a lot..Just Started the MERN Stack and this helped me a lot in getting started with mern stack..Again Thank You soo much..:)
Beau you are such a lifesaver I feel like 90% of my knowledge comes straight from you and it breaks down all those complicated concepts everyone else overcomplicates
this video is great, but it's definitely showing its age. You need to do some digging to get the hang of how things work now but, figuring it out on your own can be a pretty sweet learning experience.
Gracias por el tutorial, en pleno 2022 me pongo a aprender recién MERN, tuve algunos problemas durante el curso por algunas librerías nuevas que se instalaron en lugar de usar las librerías del año 2019, pero pude solucionar todos los problemas y me funciona, excelente vídeo 😎
Great content. I've done in-depth learning from an online platform. I like how this is summarized with good explanations. Like others have indicated, a more in-depth tutorial for intermediate and advanced programmers would help
This course is completely insane, awesome!
39:00 Why are we using a POST request here for the update? Shouldn't we be using the PUT request?
EXACTLY, That's what i'm wondering ? PUT=Update
I think the author is not using REST, as if it was, the add router would be only post, no need the route “add”, same for “update”.
This is throwing me way off too.
Yeah, the author is not using REST, as well as the newer mongoose functions like updateOne() and replaceOne(). That is not a lot to learn, though, and builds on some stuff from the video.
both do kind same things just change or mimik the database
There are some issues because of the version updates.
But still, Great Course. Very Clear. Loved it. ❤
Going to watch new version of this course now.
Thanks!
Hey Anu. Good to know you enjoy learning. Are you a fresher/ Did you create any project in JavaScript frameworks?
@@Hafsa0526 Yes. I am a fresher and I have created a project using MERN
@@anukeswani9593 Thanks for responding Anu. For further discussion, connect to me using the contact in About section of my channel
Great tutorial, really simple. I needed this refresher for work.
Where do you work that you're watching TH-cam videos for refreshers?
so after 1 week I was able to create this whole project in functional component !!
🙂🙂
This was a nice tutorial.
Thankyou!!
Awesome video! A lot of details, which will benefit beginners worldwide.
Thank you Beau, this is the first project that I completely followed through. I really like the selected information you gave, they are very on point. And thanks the comment section for very helpful information too.
Entire tutorial in one phrase: "I'm gonna paste it here".
yup
LOOOOL
The whole Programming career is just copying and pasting
@@ferhatacar5641 not tutorials tho
@Symbol how inefficient. i kept being glad that I didn't have to wait for him to type it all.
Thanks I’m taking a course at MIT and I’m taking in all I can!
1:09:12 sir you used bind(this); I saw another way to bind the methods to class by using arrow function. For eg onChangeUsername=(e)=>{...} It works fine. Is there any specific reason, why you use bind over arrow function. If there is ,please tell me? And your tutorial is very easy to follow. Thanks sir 😀
This was a fun challenge running through this tutorial but converting everything to hooks!
Hah! So, I enjoyed this tutorial quite a bit. I noticed the 123 Main Street, Grand Rapids MI and found that you and I both worked at a local coding bootcamp out here! Small world!
Was it Grand Circus?
@@matthewkruk1455 that's the one!
you saved my school project, thank you so much!
What kind of school is this ... Asking for such complex projects
This is so informative and simple, loved it.
Though, for some people (like me), increase video speed to 1.25, and enjoy.
Quality content. Kudos.
I wanted to start a full stack project but am mostly a front end guy, this has put me on a very good start so thank you very much sir!
Very good tutorial for beginners.
Suggestion: Folder structure is very important for big projects. If these tutorials also include that will be very helpful. eg: Suppose If we have a lot of routes. If we write it in server.js file it will be very difficult to read. These are small things which have a big role when the project grows.
1:08:55 , instead of using the normal functions and the binds in the constructor, you could use the arrow functions instead and 'this' won't be undefined, i tried it and it worked but i'm not sure if it has unwanted consequences ✌.
thank you, this is very useful.
a quick way to grasp MERN stack
loved this tutorial! Thanks!
Cyf
It would be good if this video gets updated with the Hooks, I know how, but I bet it would be way easier for starters than class method
Truly awesome work dude. This video tutorial gives the exact idea of a MERN Stack development. Well done my friend. 👍👍
the quality sound is very good
Nicely explained thanks bob 😍
Amazing tut man, a diamond resource to learn JS full-stack dev ! love ya!
Can't believe I've never used mongoDB before. So easy!
Thanks for the tutorial!
For anyone else wondering why their navbar doesn't vertically expand on smaller screens: Remove the "collapse" class from line 10 of navbar.component.js. I didn't notice while following along but Beau's code has a typo ("collpase") @ 55:23, which actually turned out to be beneficial for the end result lol.
Thank You Beau ! I Really Learn with you leasons ! Thanks so much !
If anyone else got stuck at 20:35 with some errors, you need to encode your password before insert it in the connection string, or you could also use the auto-generate it from user configuration in database-access page from mongodb site. And also, in the network access, add your IP.
Also there's a difference between your MongoDB password and collection password. Replace with your collection password.
@@luisady8990 How do I set the collection password?
@@drukey9206 It will ask you to set a password when you create a new cluster in MongoDB.
Thanks Beau! Recommended video, although classes in React are not used anymore, at least not in general. But for a beginner, it is a very useful tutorial. I hope to see an updated MERN course using hooks soon! Best of luck! God bless! :)
Thank you Beau! Great introductory video
You made my new year rocking.Thanks for this detailed video.I was so confused about how to connect frontend with backend and here you go, so real smooth and i actually sat for 12 hours seeing just a 2 hour video, coded along with you, and understood the whole concept.
faced problem in establishing mongoDB successfully but googled it so high for 2 hours and fixed it.& the sol was just to add the ip whitelist.
one problem is still on, like i can't see the process in console, it comes with error like server disconnected, but sometimes it works . can you give me the sol. for this. i will be grateful
& HAPPY NEW YEAR :)
cool!
This tutorial is awesome! Very concise and informative.
"For extra security I always have the exact same password as my username" lol
Lmao
Learnt a lot while doing this project. Thanks a lot.
Why are we using POST to update the exercise? Shouldn't we be using PUT to update the data?
Thanks.
One of the best tutorials out there...thanks a lot man
I really appreciate the concise and clear explanations in this tutorial. Good job!
It's the honour to be the 13k th person to like this video... Thanks for this video this clears me lots of doubts regarding MERN
after the 4th "and im gonna paste this code here" i just went to the github lmao
for the ppl scrolling down to see if this solution is working or not i want to say it is! thank you sir!
Learning full stack dev from jerry seinfeld himself. Amazing
😄😄😄 I love this comment
35:13 my post request for exercises doesn't work. Cannot POST /exercises/add - any ideas?
Why not use async/await??
facts...es6 ftw
Thank you so much! I was hoping to understand how it works and your tutorial helped me a lot to see more clearly.
Great overview. Good job.
Covers all the basics
I'm getting a 500 error when attempting to submit a user via post request at 31:20. Has anyone run into this?
"TypeError: Cannot read property 'username' of undefined"
Same here. Have you figured out why it's causing this? I turned required to "false" and I was able to at least save (mind you it didn't save the username being passed in).
maybe u should use async - await
Thank you very much. Your work is concise but straight to the point. Excellent!
This is awesome. Thank you so much. It's exactly what I wanted to learn, and it was explained very well. My mind is really blown by the idea of doing all the API requests from the browser, rather than a whole page being returned.
Question for anybody: how would you add authentication into this app? Middleware on the backend?
middleware
Jan 2023: If you get a white screen instead of UI at 1:00:00, you have to downgrade the react-router-dom version to ^5.0.0 in your pacakge.json to use the syntax explained in this video.
hi im having this error "ERROR: ValidationError: username: Path `username` is required." im on 32:10 please help me
Edit: I was using Postman and it had downloaded an update and was waiting for me to restart, after restarting it posted.
Awesome video. First time I see how things interact. Im new to React and getting into Node and the rest of the MERN pack. This helps a lot to understand how are things done between this technology. Thank you
If anyone is not getting the "MongoDB connection successful" message;
1. make sure you are in "cd backend" when you do "nodemon server".
2. make sure you remove the "" symbols from "" in the database connection string.
3. make sure your username and password is for the atlas CLUSTER not your mongoDB account. Also it should have no special characters
You're a true blue Australian hero mate.
Great! You've solved it
If i could like this twice i would! These are excellent. Thanks a million!
this guy's tutorial: "copy and paste what I write and its going to work, I promise"
He doesn't code line by line but in my opinion he always explains very clearly what the code does. Just pause the video and copy it out for yourself. Or - even better - listen to his explanation then pause and try to do it yourself, referring back to his code only if you are struggling.
im getting this error at 31:50 when testing the post api Cannot POST /api/users/add