How do i fetch data and display in MERN?
What are the steps to be followed? What are the packages that need to be installed? I am also willing to share my codes if needed.
How to Create Separate MongoDB Databases for Each Admin User and Manage Connection Strings in a MERN Stack Application
I am currently working on an inventory management system using the MERN stack (MongoDB, Express.js, React.js, Node.js). I have a requirement to create a separate MongoDB database for each admin user and map the corresponding connection string to that particular user. This will ensure that each admin has isolated data storage.
Failed to load resource: the server responded with a status of 404 (Not Found) in reactjs and nodejs
Uncaught (in promise) SyntaxError: Unexpected token ‘<‘, “<!DOCTYPE “… is not valid JSON
Failed to load resource: the server responded with a status of 404 (Not Found)
i tried to decode it in backend and it doesnt getting resolved instead its jumping to catch block. i tried to resolve but unable to do so
Verifying Student From a Particular University [closed]
Closed 37 secs ago.
Try SSR in React js or use Next js?
I wanted to create a React app , but the issue I am facing is the absence of Server Side Rendering (SSR) in React JS, which is important for SEO, sitemap, and indexing of pages in an app. I searched for many tutorials that could guide me on how to implement server-side rendering in React JS.
Try SSR in React js or use Next js in MERN?
I wanted to create a React app , but the issue I am facing is the absence of Server Side Rendering (SSR) in React JS, which is important for SEO, sitemap, and indexing of pages in an app. I searched for many tutorials that could guide me on how to implement server-side rendering in React JS.
Cast to ObjectId failed for value “clear” (type string) at path “_id” for model “Cart”” }
I’m developing an e-commerce application using Express.js, Mongoose, and MongoDB. I’m facing an issue when trying to clear a user’s cart. The goal is to delete all items in the cart for the currently authenticated user. However, I keep encountering the following error message:
how can I webhost mern stack on none modern web hosting like vercel and netlify
is there any other simple webhosting that I can upload my full MERN stack for the sake of testing out. Vercel and other modern webhosting is hard for me to learn right now, it gives error 500 and 504, and i really need to host my web. Like 000webhost but how do I upload it? do I not include the node modules? will it still be dynamic web app?
After succesfully registered, and was able to login, its data doesn’t show on collection mongodb atlas database
I’m learning MERN. My way of learning is cloning fully functional projects to test, experiment and figure out how things work, theres 1 repo that behave weirdly and I have been figuring out for hours. In the repo, after successfully setting up all correct env and testing out like login, register, booking functionality, i notice that these data doesnt update/display in the document collection. I did check the codes and seems everything is correct. I notice even if I drop the database, and start the project, I can still login with the user info stored in the deleted database which shouldnt. I even terminate the whole deployment cluster, and create a new URI, but i still was able to login with that info. What’s the reason behind this? it seems that theres an invisible database inside the repo, how to make it display in the document collection?
MongoDB Atlas database collection invisible/not showing
I’m currently learning MERN. I cloned a repo, and try its MERN stack functionality, it all worked, I was able to register and login, but when I look at my collection, theres no any data, weirdly, I deleted my cloned repo, and redo the cloning again, and I can still login with the information I register on previous file. Im certain that I setup the correct Mongo URI. Any explanation and solution with this?