VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » freeCodeCamp.org
MERN Stack Course - ALSO: Convert Backend to Serverless with MongoDB Realm

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

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Learn how to create a full-stack web app using the MERN stack. The MERN stack is MongoDB, Express, React, and Node.js. Also, learn how to use MongoDB Realm to convert the backend to serverless and host the entire thing for free in the cloud. You will even learn how to host the React frontend for free. https://github.com/beaucarnes/restaurant-reviews In the code, the realm directory has the code to use in the MongoDB Realm functions. - Learn more about MongoDB here: https://university.mongodb.com/?utm_campaign=new_students&utm_source=partner&utm_medium=referral -- Resources -- - MongoDB Basics Course: https://university.mongodb.com/courses/M001/about?utm_campaign=new_students&utm_source=partner&utm_medium=referral - MongoDB for JavaScript Developers Course: https://university.mongodb.com/courses/M220JS/about?utm_campaign=new_students&utm_source=partner&utm_medium=referral - Docs on query operators (MQL & Aggregation Framework): https://docs.mongodb.com/manual/reference/operator/ - MongoDB security best practices: https://www.mongodb.com/security-best-practices
Date: 2022-03-14

Comments and reviews: 10


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

reply

Any freelancers available? I have about 2 months trying to get something done, and I can-t get it- doesn-t mean I won-t learn, it means this part I need it sooner than later while I get some more classes on this topic--
I need a sample code for pagination and global filtering for a collection from MongDB Atlas- and I need to present it on the fronted on a table structure with , and the options of next and previous page. I would like to do the filtering and pagination from the backend, and just present the results on the frontend.-
The chart/s I am working can easily reach 700-800 items, maybe less, maybe more- I-ll be looking to throw about 100 items per page- if the user can change the number of items per page is great, but I can just leave set at 100-

reply

Hi everyone, I am also having problems with the reviews. Everything is working fine for me, both in the terminal and in insomnia. I can CRUD the restaurant reviews although I can not see it after hitting send. In my MongoDB, the review tab hasn't been added, and when I pull the report from MongoDB in insomnia it doesn't show the review I have sent even though it says successfully added.
reply

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.

reply

I dont know how you solve it but i had a problem with type: module. My code dont run i had to put everything in require. I download the project and the same problem occurred. The classic problem cant import etc etc....
I put -type-: -module- but i get the error syntaxError: Cannot use import statement outside a module

reply

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!
reply

Video is ok but in the future, pasting code everytime and then explaining it isn't as helpful as actually seeing it being written and explained. And instead of always having to say, we haven't written this code yet when using functions that havent been created, why not instead write that code first.
reply

If anyone is having a problem viewing the dropdown list of -All Cuisines- like at -1:38:16, go to the file in frontend/src/services/restaurant.js and add restaurants before the forward slash so that it becomes -restaurants/cuisines- in the getCuisines(id) function(the last function in the file).
reply

Elements that you'll have to change because they are deprecated (23/02/2022):
-File: Index.js (min 0:20:20)
poolSize => maxPoolSize,-
wtimeout => wtimeoutMS,
useNewUrlParse => useNewUrlParser,
-Files: restaurantDAO.js & reviewsDAO.js (min 0:59:30)
ObjectID => ObjectId

reply

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

reply
Add a review, comment






Other channel videos