MERN Stack Course - ALSO: Convert Backend to Serverless with MongoDB Realm

Поділитися
Вставка
  • Опубліковано 14 жов 2024

КОМЕНТАРІ • 779

  • @beau
    @beau Рік тому +2

    Next learn JavaScript DOM manipulation: ua-cam.com/video/IWRS_AM2fiE/v-deo.html

    • @lifeasdev7480
      @lifeasdev7480 Рік тому

      in 20:00 when you run the server, I get 'clean exit - waiting for changes before start', and the server never start

    • @Nickarietta31
      @Nickarietta31 11 місяців тому

      I understand @beau took time and worked hard to create this video, but you really don't want to be pasting large amounts of code during tutorials. It makes it very hard to follow along. Please type out all of your code live, so we can comfortably follow along.

    • @Nickarietta31
      @Nickarietta31 11 місяців тому

      I stopped watching this video after 45 mins. You pasting large blocks of code is too painful to follow. I don' mean to be rude, I know you work hard creating these videos. Hopefully in future videos, you can type out your code live so we can follow along.

    • @laharianegama5004
      @laharianegama5004 11 місяців тому

      @@lifeasdev7480 how did you resolve this error?

  • @kensteckler2603
    @kensteckler2603 3 роки тому +33

    Just want to let you know that I really appreciate all that you do. I started learning how to make websites end of last year from knowing absolutely nothing. 6 months later, I'm able to understand how to make a website using the MERN stack. I plan on creating my own website from scratch pretty soon and your videos have really helped me build a strong foundation in web dev. Thank you!!

    • @saravanajothigandhirajan6570
      @saravanajothigandhirajan6570 2 роки тому +1

      I also do not know anything.I want to learn web developement.Kindly give some idea to start.

    • @davidchavarriamendez9091
      @davidchavarriamendez9091 2 роки тому

      @@saravanajothigandhirajan6570 Courses is the way I always use with a new fresh topic. HTML, CSS and Js are the basics. For that, here in UA-cam you have thousands of free courses.

  • @Chris-qg6kc
    @Chris-qg6kc 3 роки тому +271

    I really appreciate what you and everybody over at Free Code Camp do. It really is helping to shape the future of our world .

  • @guidancespace
    @guidancespace 2 роки тому +42

    Took about an extra 2 hours to debug the first 2 hours of video. Thanks to the comments, got some solutions quick. The ones i missed in comments were:
    - The baseURL should not contain "restaurants" after v1, as it's also designated in the react-router-dom paths . So you get endpoints like "v1/restaurants/restaurants..."
    - For some reason, I had to change from localhost:5000 to another number. [I tried killing nodes with "pkill -f node" and restarting, but only changing localhost number worked.
    To recap some stuff other commentators pointed out:
    - Update node and npm to latest versions.
    - Make sure you install some dependencies like react-router-dom on FE
    - In the render part of each component, just rewrite the code all together. The components need to be like . The video and git are missing the and use generic (...props) that does not work (for me).

    • @encabsss
      @encabsss 2 роки тому +1

      Thanks for the head up for the baseURL. After I remove restaurants, and its start displaying the list of restaurants!

    • @jayistic
      @jayistic Рік тому

      Thanks a lot, does the happy ending come at the end and everything works fine?

  • @christinemaynard9025
    @christinemaynard9025 3 роки тому +154

    For anyone who encountered the same problem I did with the review collection not being created: be sure to add the restaurant review DAO injectdb method call to mongo client connection in the index file. The same way he made a reference to the restaurantDAO at the beginning of the vid

    • @milouri23
      @milouri23 3 роки тому +3

      Thank you! I was getting nuts trying to find the reason why I was not getting the review inserted.

    • @williamdesilva
      @williamdesilva 3 роки тому

      thankyou!

    • @KNOWMORETIPS
      @KNOWMORETIPS 3 роки тому

      Hi i'm stuck with terminal , should i use terminal from VSD or from CMD ?

    • @alexsannikov3398
      @alexsannikov3398 3 роки тому +1

      Additionally at the top of reviewsDAO.js is a typo
      const ObjectId = mongodb.ObjectId;
      should be
      const ObjectId = mongodb.ObjectID;

    • @ririparee
      @ririparee 3 роки тому

      @@alexsannikov3398 hey thanks man! Good catch

  • @daliovic24
    @daliovic24 Рік тому +40

    Great course, a quick feedback though, I always think writing the code is better than pasting it in beginner tutorials, but if the tutor has to paste some code to save some time, please try to paste it in small blocks. Pasting 50 lines of code at once (25:00) is a bit overwhelming, despite the good explanation provided
    Thanks again for all your courses FCC

    • @adarshsingh9752
      @adarshsingh9752 Рік тому +1

      Hey... If you gone through this, can you tell me if it's beginner friendly?

  • @kathleenmccarthy6347
    @kathleenmccarthy6347 2 роки тому +2

    I abandoned this restaurant reviews tutorial after several failed attempts but returned this week and was able to get mine working. This time around I installed an earlier version of react-router-dom but I don't know if this was necessary. Thanks so much for this tutorial!

    • @Mo-cn9kd
      @Mo-cn9kd Рік тому

      yes i believe you need 5th version or something of the sort, there is another comment about it

  • @TwoAcesVI
    @TwoAcesVI 3 роки тому +20

    I would love to see a extra episode on how to fully test the backend and the frontend of this application. Personally i encountered alot of hurdles trying to test my express backend API.

  • @IshanKesharwani
    @IshanKesharwani 3 роки тому +8

    I thought it's a 2hr video but it should be a 20 hour video for me. I have never used these functionalities in my projects but thanks to *BEAU* I can learn and use it in my project after a thorough and repetitive watching.

  • @ericcapiz6516
    @ericcapiz6516 3 роки тому +2

    if you refresh the page while logged in, it will log you out.. fyi.. very basic project. but gives us alot to do on our own to make it a worthy portfolio project.. great tutorial

  • @MontherMMG
    @MontherMMG 2 роки тому +5

    Fix an issue:
    for the Reviews not able to be inserted in the mongoDB and not able to add review,
    this need to be added in the index.js file:
    1==> import restaurantsDAO from "./dao/restaurantsDAO.js";
    2==> await ReviewsDAO.injectDB(client)
    reviews database will be inserted and works fine

  • @jacobloat8204
    @jacobloat8204 2 роки тому +2

    Every time you pasted code in it took five years off my life. I'll see you all at my funeral in 20 minutes

  • @大花猫-i3o
    @大花猫-i3o 3 роки тому +22

    Learn MERN Stack (wrong), Learn to debug something that u r not familiar (right)

  • @whyrohit4197
    @whyrohit4197 Рік тому +23

    20:04 In modern MongoDB driver versions, such as v4.0 and later, the poolSize and useNewUrlParser options have been deprecated and should not be used as direct options in the connection string.
    use this instead of that :
    useNewUrlParser: true,
    useUnifiedTopology: true,
    wtimeout: 2500,
    PHEWWWW IT ALMOST TOOK ME AN HOUR TO FIND THE ISSUE T-T

    • @swarnima6656
      @swarnima6656 3 місяці тому

      ive made these changes but i still keep getting the error "localhost refused to connect."

    • @jacksonogles3147
      @jacksonogles3147 2 місяці тому

      @@swarnima6656 me too

  • @darbyburbidge8976
    @darbyburbidge8976 3 роки тому +16

    For anyone late to the party, I had a hell of a time getting bootstrap to align the search sections properly at about 1:39:00. I found that it fills the space to fit the restaurant columns if you set the input-group divs to just "col-lg" and then add "col" to the "select" item for the dropdown. Only as I'm writing this do I realize that he also didn't align his dropdown tab, haha.
    Either way, it's something like:
    className="input-group col-lg"
    className="input-group col-lg"
    className="input-group col-lg"
    className="col"
    making the select bar a single column tells it to fill the available space, but it gets all wonky if you don't also remove the "4" from the sizing of the input groups. Still not entirely sure why. Feedback on if I'm mistaken would be appreciated.

    • @lavanya_m01
      @lavanya_m01 2 роки тому +1

      Thanks man! I was also having a tough time in aligning it

    • @emmanuelgandelman9024
      @emmanuelgandelman9024 2 роки тому

      Got, I guess, the same problem that the 3 searches aren't rendered as columns but as 3 rows. However this solution if I got it right didn't solve it for me if anyone got it right (bootstrap 5 installed in root directory)

    • @muhammadtalhabaig1725
      @muhammadtalhabaig1725 Рік тому

      @@emmanuelgandelman9024 I have removed the -4 from col-lg-4, so it was just col-lg and it worked 😅

  • @jtothey1993
    @jtothey1993 2 роки тому +3

    For anyone using a Mac OS and can't connect to port 5000, switch to a different port like 5001 since 5000 won't allow you to access it.

  • @kazi004
    @kazi004 3 роки тому +1

    My first experience with Mongo Realm and I'm amazed how many ways they have to help me build, thank you for the introduction :)

  • @nanascho3
    @nanascho3 3 роки тому +2

    Finished it -- Really an excellent course all together. Helped bridge the gap between Node/Express and Realm by showing necessary changes and configuration.

    • @victoradodo8377
      @victoradodo8377 2 роки тому

      Hello Andrew I got stock at about 24mins when he run nodemon server , can you pls help me out?

  • @hasanCMLE
    @hasanCMLE 2 роки тому +1

    If you are having issue something about switch, follow the instructions:
    uninstalled the version 6 of react-router-dom:
    npm uninstall react-router-dom
    And installed version 5.2.0 of react-router-dom:
    npm install react-router-dom@5.2.0

  • @jerald1836
    @jerald1836 3 роки тому +7

    I love this MERN tutorial. Its really help me. Thank you Beau Carnes for helping us.

  • @maorazoulay
    @maorazoulay Рік тому +2

    This is great Beau, thank you. This video needs serious update though. It's impossible to follow along without debugging numerous issues due to deprecated functions in the packages used in the video... Would love to help with some Pull Requests to the repo but I see that there is no activity.

  • @projectexalia
    @projectexalia 3 роки тому +9

    I would've preferred this to be a 5-hour video but without copy/pasting rather than copy-pasting everything.

  • @ganeshsrambikal3614
    @ganeshsrambikal3614 3 роки тому +15

    2:43:11 if anyone getting error (Message: The specified key does not exist.) 404 not found , after hosting , then go to hosting setting and set Single-Page Application entrypoint as index.html .

  • @nanascho3
    @nanascho3 3 роки тому +8

    Best practices dictate that React components be written in PascalCase. For example, rather than `restaurants-list.js` it should be `RestaurantsList.js`

    • @nanascho3
      @nanascho3 3 роки тому

      @dev null Dan Abramov? Kent Dodds? The literal documentation on the website? Pick any of them. Or all three. Gotta collect them all. ;)

  • @BeauCarnes
    @BeauCarnes 3 роки тому +175

    What do you think the stack at the end should be called without Node and Express? Maybe the MRR stack?

    • @justinwilson5088
      @justinwilson5088 3 роки тому +6

      i like RRealmM stack

    • @honeykhra
      @honeykhra 3 роки тому +2

      Take a bow sir you are great

    • @dantefrias
      @dantefrias 2 роки тому +3

      Maybe MR2 👍

    • @libra8964
      @libra8964 2 роки тому +3

      R2M sounds good

    • @halilc759
      @halilc759 2 роки тому +2

      Hey Beau, sorry to bother you for this but what Google Chrome Extension are you using to make your HTML more readable at 40:00 ? And to answer your question I would keep it simple and call it RRealM or MRR. Stack (pronounced as mister stack) maybe? I hope this helps you, thank you for the amazing video and content on your channel.

  • @vladislavnikora
    @vladislavnikora 3 роки тому +4

    @23:06 Had an issue when everything was done right, but nodemon index/server kept complaining that I still 'Must use import to load JS module'.
    That was caused by an older node version - switched to 14.0+ and it helped
    Great refresher course otherwise!

  • @MontherMMG
    @MontherMMG 2 роки тому +1

    Fix issue:
    to be able to install (01:06:55)
    install the react-router-dom
    you need to fo to the main folder ==> restaurnts-reviews
    then ==> npm init -y
    which will create the package.json file and allow the router dom to be install inside it.

  • @HowtobePhit
    @HowtobePhit Рік тому +1

    It wasn't this way previously but at: 22:00 when he changes the password, that is no longer needed. The link that Mongo generates for you will already have your user password included. DO NOT delete it or your app wont connect.

    • @marco_polo18
      @marco_polo18 Рік тому

      where did you get database for restaurants did you insert it ur self

  • @nsitkarana
    @nsitkarana Рік тому

    will suggest to make an alternate version which avoid doing the copy pasting of the code . it can be even more basic than this - will make this easier to follow for folks who are new to the MERN stack. otherwise, going through the video and trying out the example is going to take atleast 2 or 3 times the length of the video - thats what it took me. Got a good taste of the MERN stack though !! Thanks for putting this together

  • @benjamincastro541
    @benjamincastro541 3 роки тому +13

    Very nice tutorial, thank you. However, I believe you made an incorrect choice at not including Mongoose as a library. Such libraries are created for a reason... your code for connecting to a database and querying it is considerably more complicated and less maintainable than code that uses the Mongoose library.

    • @bryankee1368
      @bryankee1368 3 роки тому +1

      Exactly!

    • @leeroyjenkns5182
      @leeroyjenkns5182 3 роки тому +1

      The amount of code needed for database operations just seems impractical to me, compared to out-of-the-box solution mongoose provides.

    • @emday4prez
      @emday4prez 2 роки тому +3

      it is nice to know what is going on under the hood of mongoose and now i know why to use mongoose

    • @emmanuelgandelman9024
      @emmanuelgandelman9024 2 роки тому +1

      Did someone by any chance converted this tutorial to Mongoose ?

    • @jayistic
      @jayistic Рік тому

      @@emmanuelgandelman9024 I think I will after the tutorial :)

  • @KwanFung
    @KwanFung Рік тому +1

    11:06 is visual studio code, a program you have to download if you don't have it already

  • @pratikthorat2314
    @pratikthorat2314 2 роки тому +1

    This tutorial is good in terms of concept understanding really appreciate the efforts by the instructor.

    • @shivanigaddagimath5994
      @shivanigaddagimath5994 2 роки тому

      Hi Pratik, are you looking for SDE roles currently? Reach out to me if you are by visiting the "About" section of my channel.

  • @ArtIndustry1
    @ArtIndustry1 2 роки тому +5

    For the problem from the minute 40:00 , in which the information is displayed in the form of text / paragraph that I found was to download a browser extension for display in JSON format. In my case I use Operas and I downloaded the JSONVue extension from the Chrome Store (or something like that).

  • @danielenrico8124
    @danielenrico8124 3 роки тому +36

    I followed along perfectly but I had to use `nodemon index.js` instead of `nodemon server.js` at 23:10

    • @binarytv2904
      @binarytv2904 3 роки тому +3

      just use 'server' not 'server.js'. worked for me

    • @princetheperfect52
      @princetheperfect52 3 роки тому +1

      Same issue

    • @alfamingo2520
      @alfamingo2520 2 роки тому

      Same issue, however this didn't resolve it

    • @kingjoo8309
      @kingjoo8309 2 роки тому

      Are you found any solution??

    • @victoradodo8377
      @victoradodo8377 2 роки тому

      Hello Daniel I had the same problem, but not working . can you pls help me out

  • @ronniestaton1587
    @ronniestaton1587 Рік тому +2

    I was given this video to learn from at school while knowing NOTHING about mern stack and I can say… my assignment was turned in late and half finished because this is not the vid to be having your first experience with mern with.

  • @saadafzal4037
    @saadafzal4037 2 роки тому +10

    This tutorial is good in terms of concept understanding really appreciate the efforts by the instructor, however, while following the tutorial there were a lot of version compatibility issues and structural issues related to react-router-dom, I hope you can address it in the future, besides as always great work!

    • @VladdyHell
      @VladdyHell 2 роки тому +16

      I had a hard time with the issue too, however that's something you need to fix yourself, since we're programmers, fixing bugs is something we need to learn too instead of relying to the instructors

    • @coreydevs
      @coreydevs Рік тому

      That's because versions change my friend. It's a free course. Refer to the documentation of the tech used here to get up to date information.

    • @TheHumanistX
      @TheHumanistX Рік тому

      this was free...

  • @adamgerber7824
    @adamgerber7824 2 роки тому +29

    They should call this tutorial: 5 HOURS OF DEBUGGING

  • @AJPHIL-bt4me
    @AJPHIL-bt4me 3 роки тому +3

    Just had to leave a comment you just saved my Bootcamp Final project

  • @TheDharmaDragon
    @TheDharmaDragon 2 роки тому +7

    If you're struggling to get it to display @1:23:14 and getting an error that "Switch" isn't in the react-router-dom. Do yourself a favor and install "npm install react-router-dom@5" -- it will display just fine after that.

  • @wacioc
    @wacioc 2 роки тому +3

    "I'm not gonna' waste time explaining about react hooks, but let me explain you in depth how a ternary operator works"

  • @umairhp
    @umairhp 2 роки тому +1

    Thank you for such an amazing course! I have a question. How does MongoDB Realm scale for large-scale apps. For instance, what if your app has a million users. Would it be viable to use MongoDB realm to host such an app?

  • @pjmantoss
    @pjmantoss 2 роки тому +8

    Great video. But so many commands in this tutorial from mongodb are deprecated. When you run the server, you get tons of errors in the console.

    • @emmanuelgandelman9024
      @emmanuelgandelman9024 2 роки тому

      thanks for the warning. Was it hard to find a workaround ?

    • @pjmantoss
      @pjmantoss 2 роки тому

      @@emmanuelgandelman9024 I couldn't find a solution. I posted the issues in the freeCodeCamp Forum, but still no solution.

    • @clevelandforde6570
      @clevelandforde6570 2 роки тому

      @@pjmantoss Please see Flaviu Pop comment above.

  • @benblum1761
    @benblum1761 3 роки тому +3

    day 2: on 47:48. Im trying to write everything on typescript and I had to google what DAO means. I hope I will manage to finish this in a few days

  • @rickyu1978
    @rickyu1978 3 роки тому +1

    Invaluable expecially Realm which i believe was previously called stitch. I thought you could also query the db directly from the browser instead of writing a function in realm?

  • @als5321
    @als5321 3 роки тому +2

    We love you Beau!

  • @onldhes
    @onldhes 2 роки тому +7

    There is a lot of good information in this tutorial, but my gosh is it hard to learn from with all those giant tool tip boxes covering up half your screen.

  • @alejandroz1198
    @alejandroz1198 Рік тому +3

    23:14 I don't understand this. This shouldnt work since index.js, where the listenner is, isn't mentioned in server.js. How does it work for you?
    EDIT: I forgot, you must run 'nodemon server' not 'nodemon server.js'.
    EDIT 2: I was also stuck with this. Basically, the guy in the tutorial made an error. Nodemon says:
    "Note: if the script is omitted, nodemon will try to read "main" from package.json and without a nodemon.json, nodemon will monitor .js, .mjs, .coffee, .litcoffee, and .json by default."
    Basically, it just runs index.js by default because package.json says so. I don't know why the tutorial guy runs "nodemon server".

  • @prabirchoudhury8375
    @prabirchoudhury8375 3 роки тому

    Great work. Even though my own explorations with MERN is quite limited.
    I appreciate this. Lovely,
    Great work,

  • @aminhlel7241
    @aminhlel7241 3 роки тому +7

    shout out from tunisia

  • @BjornV1976
    @BjornV1976 2 роки тому +12

    If people having trouble with the frontend on the current versions of react en react-router-dom.
    fix:
    npm uninstall react-rouer-dom
    npm install react-router-dom@5

    • @puranjayarora4567
      @puranjayarora4567 2 роки тому +1

      Thanks for the advice :)

    • @arihansharma6384
      @arihansharma6384 2 роки тому +1

      Thank you SO MUCH! 12 hours from the deadline and this saved my life :D

    • @ericyeh1995
      @ericyeh1995 2 роки тому

      Thanks! had to restart the tutorial due to this problem. Now it's fixed!

  • @banderamusical
    @banderamusical 2 роки тому

    Beau is a great instructor thanks for all the help

  • @maazahmad9756
    @maazahmad9756 3 роки тому +2

    realm part is amazing

  • @ianc.34
    @ianc.34 2 роки тому +20

    For v6 of react router dom, change "Switch" to "Routes". I'm also getting "Invalid Hook Call" ~@1:20:00. Might have something to do with multiple Reacts detected, but can't figure out how to fix.
    Update: issue is in the
    Also need to change 'component' to 'element' per v6.
    Removing the array brackets stopped a different error I was getting, allowing the page to compile. I'm only using one path, as using multiple paths is breaking the app.
    But now getting another error.."Warning: Functions are not valid as a React child."...will update if I figured something out.

    • @ianc.34
      @ianc.34 2 роки тому +7

      render={(props) => (

      )}
      needs to be changed to
      element = { } and it can now render correctly. There are also the other two similar render things that will need to be changed.
      I'm not sure what {...props} was doing as I didn't hear an explanation in the tutorial, though I'm not completely finished yet. Will probably need to find a way to pass in whatever props that is referring to. Will update further when done.

    • @davidhainovitz2838
      @davidhainovitz2838 2 роки тому +2

      Hi I was also getting the Invalid hooks problem. At first i tried to demote the installed packages to the ones Beau was using. Didnt help. The fixes you suggested were not fixing my problems either. I just decided to follow using the git version. My main focus is learning the Mern stack and how to integrate the Front and the Back. Fixing compatibility issues IMO is just being sidetracked. Would be nice though if an updated working version was published...........

    • @jazirladha7686
      @jazirladha7686 2 роки тому +1

      Hi, my path now looks like this "" but I'm still getting the "invalid Hook Call" error which is incredibly frustrating. Did you change anything else to make it work?

    • @juanpaolodionisio429
      @juanpaolodionisio429 2 роки тому +1

      @@jazirladha7686 I had the same problem. I fixed mine by making sure that the react-router-dom dependency is installed in my frontend folder. Hope this helps.

    • @jazirladha7686
      @jazirladha7686 2 роки тому

      @@juanpaolodionisio429 Thank you! That worked for me too

  • @kaushikkalesh1678
    @kaushikkalesh1678 3 роки тому +6

    not happy with the parts where you just copy paste the code 😞

  • @tanvirtanvir6435
    @tanvirtanvir6435 2 роки тому

    0:26 MERN full form
    2:05 MERN app er structure Fig
    5:25 Mongodb account toiri kora

  • @rushikeshsabde1875
    @rushikeshsabde1875 3 роки тому +1

    Please add courses on Node.js and Express.js microservices.

  • @jaredkohrt5228
    @jaredkohrt5228 3 роки тому +7

    I'm relatively new to JS and was confused by the syntax used around 27:34 in getRestaurants' function signature. What's the purpose (or just the name) of the " = {}" following the options object?

    • @rezan6971
      @rezan6971 3 роки тому +4

      its just a default parameter...to avoid getting error if no object passed as argument...for more info search for this it should be first result : JavaScript Destructuring Assignment with Default Values

    • @yuryvinogradov4532
      @yuryvinogradov4532 2 роки тому

      From MDN:
      function drawChart({size = 'big', coords = {x: 0, y: 0}, radius = 25} = { }) { }
      You could have also written the function without the right-hand side assignment. However, if you leave out the right-hand side assignment, the function will look for at least one argument to be supplied when invoked, whereas in its current form, you can call drawChart() without supplying any parameters. The current design is useful if you want to be able to call the function without supplying any parameters. The other can be useful when you want to ensure an object is passed to the function.

  • @cristionbrown
    @cristionbrown 3 роки тому +4

    Not sure if I am the only one here with this issue but I ran into an error "TypeError: Cannot read properties of undefined (reading 'map')"
    Been knocking my head for 3-4 hours over this one.

    • @aaryangarhewal
      @aaryangarhewal 2 роки тому

      did u find the solution?

    • @cristionbrown
      @cristionbrown 2 роки тому

      @@aaryangarhewal unfortunately I did not. I chose to follow another tutorial.

    • @aaryangarhewal
      @aaryangarhewal 2 роки тому +1

      @@cristionbrown okay, well I have found that... Just add
      const [loading, setLoading] = useState(false); const [error, setError] = useState();
      if (loading) {
      return Data is loading...;
      }
      if (error || !Array.isArray(dining)) {
      return There was an error loading your data!;
      }

    • @cristionbrown
      @cristionbrown 2 роки тому +1

      @@aaryangarhewal thanks. I'll keep this in mind!

  • @carsonrichter8946
    @carsonrichter8946 3 роки тому +2

    If anyone has any trouble making the put request make sure to change the restaurant_id to review_id in postman or insomnia.

  • @abdullashafi580
    @abdullashafi580 3 роки тому +17

    Django With React Tutorial please.....

    • @PiyushJain-ct2qq
      @PiyushJain-ct2qq 3 роки тому

      This I want as well

    • @vinny142
      @vinny142 3 роки тому +2

      Why not just a "Django+GraphQL" one and a "React with graphQL" one? All this talk of combinations is exactly the wrong way to go about it, REST API's and GraphQL where designed specifically so the backend and frontend don't have to know any thing about eachother.
      I'd much prefer a way to use react with proper REST API's so we can ditch graphQL and get control back over the insane way that frontenders think they can request data.

    • @TuringTested01
      @TuringTested01 3 роки тому +1

      django is crap

    • @vinny142
      @vinny142 3 роки тому +4

      @@TuringTested01 Trolling is for the weak.

    • @TuringTested01
      @TuringTested01 3 роки тому

      @@vinny142 true, i also believe trolling is for the weak.

  • @sethurk
    @sethurk 3 роки тому +2

    Nice tutorial. Could you please let us know the code color theme and icon theme you're using in every tutorial. Thank you

  • @bossymassy1448
    @bossymassy1448 3 роки тому +1

    Salute to you Sir! Your channel is really a big help! Thank you

  • @lisali6205
    @lisali6205 2 роки тому

    Thank you for teaching us. You are a very good person.

  • @shameekbaranwal
    @shameekbaranwal 3 роки тому +13

    Hey, at about 1:05:00, when I try to get a restaurant by ID, the reviews array seems to be empty for some reason? There's supposed to be two reviews in that array according to the data I can see in the collection on the mongodb website, but the API is still returning an empty array. Any solutions?

    • @shameekbaranwal
      @shameekbaranwal 3 роки тому +3

      In case anybody is stuck at this, make sure that your restaurant ID is being correctly interpreted from the body of the request when you post a review. I was sending the value in restaurantID but was trying to receive from req.body.restaurant_id, which I immediately enter as ObjectId(restaurant_id) where it got an index, after which you can't distinguish whether it got the correct value or even null.
      You can check if you're having the same problem by just cross-checking whether the restaurant_id in the reviews collection is the same as what you passed.

    • @Tokur-zi7xf
      @Tokur-zi7xf 3 роки тому +1

      @@shameekbaranwal Can you give more info or code example? I mean literally all we've done is copy and pasted and everything I have matches his code. But mine aren't even showing up in reviews collection now.

    • @shikharpathak8510
      @shikharpathak8510 3 роки тому

      Thanks bro... you saved the day...

    • @daverd6434
      @daverd6434 3 роки тому +3

      i almost went crazy, i was just missing the '$' in $restaurant_id

    • @RelaxMusic-we9xm
      @RelaxMusic-we9xm 3 роки тому

      I am still stuck here, and everything is in place. could you please show us what you changed @sgeek?

  • @JErock25
    @JErock25 3 роки тому +1

    Thank you for all your work, guys!! 🤩

  • @alicealice9719
    @alicealice9719 2 роки тому +1

    You are my hero ✌️

  • @D1rector
    @D1rector 3 роки тому

    Thank you Beau, great video and well explained walk through

  • @Trixz-the
    @Trixz-the 3 роки тому +4

    Thanks guys.

  • @marwaneakef7435
    @marwaneakef7435 3 роки тому +2

    THANK you so much ! can you please do an offline support for react next ?

    • @raymondmichael4987
      @raymondmichael4987 3 роки тому

      Exactly, especially using same mongodb & realm for mobile

  • @muthu1046
    @muthu1046 3 роки тому

    Hi fCC.. I'm Happy to see this course.. but can we expect a MEAN Stack Course anytime in near future?

    • @vinny142
      @vinny142 3 роки тому

      they have done videos on that before. it takes more time to ask in a comment than to type it in google.

    • @muthu1046
      @muthu1046 3 роки тому

      @@vinny142 MERN/MERNG courses were also already uploaded a year ago.. now a new version of MERN is uploaded.. so why not MEAN?..
      I just wanted to see if anything new is happening with Angular (perhaps MEAN + ngrx or MEAN + Mongo Realm etc)

  • @jyotirmoydeb5263
    @jyotirmoydeb5263 3 роки тому +1

    Great video...can i use mongoose as well ?

  • @jeanlocha2010
    @jeanlocha2010 2 роки тому

    Nice, but at service frontend, review and restarant are different context, i added add two service, one to Review and other restaurant, equal in backend, congratulation at project

  • @Mazedaar_kahaniya_hindi
    @Mazedaar_kahaniya_hindi 2 роки тому

    This saved my life.

  • @na-zw8ju
    @na-zw8ju 2 роки тому

    Thanks a lot for sharing this. The only MongoDB project that thoroughly cover all the key topics.
    The only issue is that you should have wrapped the code lines. It's really a headache to follow those long lines in the video.

  • @AHRienks
    @AHRienks 3 роки тому +1

    Very good! Thank you so much @beau

  • @sidhantsrivastava7426
    @sidhantsrivastava7426 3 роки тому

    Django + React course would be awesome

  • @san-chil
    @san-chil 3 роки тому

    CERN : CouchDB, Express, React and NodeJS

  • @jasonchan7147
    @jasonchan7147 3 роки тому +2

    Astonished by your tutorial, it really taught me so much. Please keep on making this video. Maybe try on some stack like javascript + ruby/python/java, it will help a lot of beginners!!

  • @nanascho3
    @nanascho3 3 роки тому +2

    Why are you installing bootstrap and the other libraries related to the React application into the root directory of restaurant-review (backend and frontend directories) and not just in the frontend directory? This isn't recommended. Since npx create-react-app uses yarn by default, you'll want to cd into the frontend directory and run `yarn add bootstrap react-router-dom`

    • @hedwardd
      @hedwardd 3 роки тому

      Thanks! This saved me some time. I tried to jump in at the 2 hour mark to skip to the serverless stuff and was getting errors for not having bootstrap installed. This yarn command worked like a charm

  • @hsiang-yehhwang2625
    @hsiang-yehhwang2625 3 роки тому

    This is a GREAT tutorial!!
    Thanks for sharing!!

  • @sethurk
    @sethurk 3 роки тому +5

    25:36 injectDB would work with locally installed database as well? or it will work only with mongodb altas?

  • @timothytan84
    @timothytan84 2 роки тому +3

    Ran into a problem with nodemon, I couldnt install it at first so i used sudo install -g nodemon.
    But anyway, on starting my server, I ran into further problems:
    [nodemon] restarting due to changes...
    [nodemon] starting `node server index.js`
    TypeError: Cannot read properties of undefined (reading 'startsWith')
    at connectionStringHasValidScheme (/Users/timo/Documents/MERN Stack Practice/restaurant-reviews/backend/node_modules/mongodb-connection-string-url/lib/index.js:9:30)
    at new ConnectionString (/Users/timo/Documents/MERN Stack Practice/restaurant-reviews/backend/node_modules/mongodb-connection-string-url/lib/index.js:85:34)
    at parseOptions (/Users/timo/Documents/MERN Stack Practice/restaurant-reviews/backend/node_modules/mongodb/lib/connection_string.js:209:17)
    at new MongoClient (/Users/timo/Documents/MERN Stack Practice/restaurant-reviews/backend/node_modules/mongodb/lib/mongo_client.js:62:63)
    at Function.connect (/Users/timo/Documents/MERN Stack Practice/restaurant-reviews/backend/node_modules/mongodb/lib/mongo_client.js:195:33)
    at file:///Users/timo/Documents/MERN%20Stack%20Practice/restaurant-reviews/backend/index.js:10:13
    at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
    at async loadESM (node:internal/process/esm_loader:88:5)
    [nodemon] app crashed - waiting for file changes before starting...
    Does anyone know why this error is thrown? what can i do to fix this? Stuck at the first 23mins of the video and can't proceed

  • @swarajgadre5630
    @swarajgadre5630 3 роки тому

    Thank you sir! your teaching is exellent

  • @esdev
    @esdev 3 роки тому +3

    Intro was nice! but I don't like long chunk of code pasting and go through all the way to end. That's boring and something hard to understand. write small code test it and continue.

  • @seansopata5121
    @seansopata5121 3 роки тому +15

    I really wanted to like this, but the process of "let me paste a wall of code instead of typing it and explaining it" is a terrible way to teach. And once pasted, the constant scroll up/down/sideways makes it difficult to actually look at what the code is doing.
    Additionally, while node has ASI, for readability, put the damned semicolons in.

  • @Wojtasvx
    @Wojtasvx 3 роки тому

    Amazing tutorial, u are really good teacher ! :D

  • @noahqyain7311
    @noahqyain7311 2 роки тому

    Knowing technology today by the time I finish this video and understand it, half of what he taught will be deprecated and a whole new framework, noSQL and language->syntax will be the common knowledge needed to know w/10 years of experience required to work in career position with.

  • @janelynn1221
    @janelynn1221 3 роки тому +4

    I cannot get a list of restaurants from database :( (at 39:56)
    instead of showing me are something like this:
    "restaurants": [],
    "page": 0,
    "filters": {},
    "entries_per_page": 20,
    "total_results": 0

  • @nikhildinesan5259
    @nikhildinesan5259 3 роки тому

    great video... pls do more videos on mern stack projects .....thnxx

  • @kyle7782
    @kyle7782 2 роки тому +3

    Is anyone else having an issue with actually rendering their reviews on the frontend? I can submit a review just fine through postman and it is for sure in Mongo properly. What was your solution if you figured this out?
    Also, using same version of react-router as Beau, the instructor, here so that's not an issue. Everything else displays fine except reviews.

    • @nikunjrules619
      @nikunjrules619 2 роки тому

      Hey, I am facing the same problem.
      Will really appreciate your help if you fixed this issue.

    • @kyle7782
      @kyle7782 2 роки тому

      @@nikunjrules619 Sorry, never did. But if you ever do, let me know, haha.

  • @renutyagi3623
    @renutyagi3623 3 роки тому +9

    I followed till 39:58 but after opening the link in browser , I am not getting the db contents. All I am getting is this :
    {"restaurants":[],"page":0,"filters":{},"entries_per_page":20,"total_results":0}
    Can anyone help on this?

    • @DanAleTosta
      @DanAleTosta 3 роки тому +1

      I am having the same problem and have been working on it for a few days now with no solution.

    • @hakonbogen
      @hakonbogen 3 роки тому

      did you figure it out? i have the same problem

    • @大花猫-i3o
      @大花猫-i3o 3 роки тому

      I solved this issue simply by replacing my hand-written code in restaurantsDAO with his code in github

    • @abhinavchaudhary7765
      @abhinavchaudhary7765 2 роки тому

      I am having a same issue, please reply if anyone figured it out.

    • @abhinavchaudhary7765
      @abhinavchaudhary7765 2 роки тому

      @@大花猫-i3o can you share please, what changes have you made?

  • @feep1642
    @feep1642 3 роки тому +1

    very nice video i watched the whole thing

  • @simaobonvalot7697
    @simaobonvalot7697 Рік тому

    In the other video you use mongoose to create schema for the MongoDB.
    What is the difference here ? It seems you use Mongodb.MongoClient instead ?
    Isn't mongoose easier ?

  • @sriveralopez
    @sriveralopez 2 роки тому +7

    The instructor tries his best and I think we all appreciate that. But. The tutorial is outdated, you spend too much time debugging, loads of copy pasting, wrong naming conventions and I've found myself crawling the comments in the hope of finding solutions way too many times. It may be better to just learn from another resource at this point.

  • @Latif127
    @Latif127 3 роки тому

    Awesome. Thank you very much for a great great tutorial.

  • @aminmeraji4932
    @aminmeraji4932 3 роки тому

    if you are using a VPN your IP address might change. then you can't connect to the cluster because the new IP is not in the IP access list

  • @terry_swd
    @terry_swd 2 роки тому

    I like how you pronounced "caterer" lol, like it's a French word 😂 It's "kater" - "rer", Beau :)

  • @gideonaswani2449
    @gideonaswani2449 2 роки тому +3

    Hi @Beau, thanks for this fantastic tutorial. I have run into a challenge with adding reviews for a restaurant. After I log in and create a review, when I click the submit button I see a new entry in the MongoDB with the name, user_id, and text fields having null as values. However, upon clicking on the View Reviews button on the restaurant, I don't see the new review. When I try to edit a review I created using insomnia, when I click on the submit button nothing happens and there is no new entry in the MongoDB. What could be the problem?

    • @carlosplaza709
      @carlosplaza709 2 роки тому

      im having the same issue, could you solve it yet?

    • @chaudarren2428
      @chaudarren2428 Рік тому

      also having the same issue, can anyone solve it

  • @orcunturkol
    @orcunturkol 3 роки тому +4

    This is advanced level course. If you never work with mongodb, react or node you can't understand anything.

    • @quartzer4008
      @quartzer4008 2 роки тому +1

      Its completly obvious that you must have some knowladge of these technolgies otherwise course would have been 15h long

  • @larissagarcia6401
    @larissagarcia6401 Рік тому

    Thanks a lot for this!