Connecting MongoDB to Node JS / Express JS - MERN Stack Project Tutorial #9

preview_player
Показать описание
#MernStack #mern #MernTutorial #MernStackProject

MERN Stack Tutorial Series with Redux where we will learn to build an Awesome Full Stack Notes Taking Web App Project.
In this video we will Connect MongoDB to our Application

Source Code -

Full Playlist -

Movie App in React JS and Material UI -

Quiz App in React JS and Material UI -

Dictionary App in React JS and Material UI -
Рекомендации по теме
Комментарии
Автор

Thank u i m facing this problem 7 hours u tutorial very helpful my error is resolved thnk u so much

rehanahmad
Автор

Your this mern tutorial is too good for the beginners .... don't stop to upload this kind of tutorials

iamritam
Автор

You are doing a great job buddy i was finding a playlist to learn essential things for backend to apply in my project and all your vedios are short and precise, keep it up 👍

arthgupta
Автор

Yes Yes front & backend and mongo all running Thank u again Mate ok it midnight here i see u tomorrow have a great night my friend Take care be safe

NSWMods
Автор

If you'all get an error says - the 'uri' parameter to open ()uri must be a string.
Insert your mongodb connection link inside- mongoose.connect('link',
Like this

shamamamihar
Автор

Error: Cannot find module '.backend-app/src/db'
Require stack:
-
at Module._resolveFilename
at Module._load
at Module.require
at require
at Object.<anonymous>
at Module._compile
at Module._extensions..js
at Module.load
at Module._load
at [as runMain] {
code: 'MODULE_NOT_FOUND',
requireStack: [ ]

sandhyas
Автор

hi.. I got this error.. plz help on it.
Error: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.

vijaymarka
Автор

did everything similar as you did.. but still getting error-[nodemon] - app crashed - waiting for file changes before starting...

avanisoam
Автор

I am not seeing any messages about my database starting, and I am not getting any errors. I just keep seeing my server and client restarting with no errors but I never get any mongodb errors or successes anyone can help me?

realAgitated
Автор

Make sure to remove the angular bracket before, after the password, replace the space by an underscore and add your database name before the ? in uri

mehakmattoo
Автор

error :listen EACCES : permission denied 5000 this to fix it up??

c__abhikkumarpal
Автор

Please help
I am getting this error when i try and run it

Error: option usecreateindex is not supported

bryanzikhayi
Автор

I’m getting error messages. Very frustrating. Error: couldn’t connect to any servers on atlas. Please help please 🙏

keshav
Автор


const dotenv = require('dotenv');
const notes = require("./data/notes");


const connectDB = require("./config/db");

dotenv.config();

const app = express();

other

surajchandramauli
Автор

This was helpful. Would have been great if you could show how to host the entire app (including the database). Thanks

priyeshjammula
Автор

this content is very helpful. but i have a issue. mongoose.connect( ) is not working. it says first argument must be a string. i have tried many thing but nothing happen.

jaskaranminhas
Автор

Hello, thank you for this tutorial it's really helpful! When I tried to run backend I got the following Error: option usecreateindex is not supported. But once I deleted the line of useCreateIndex it worked just fine. What is the reason for this error?

jadabouzeid
Автор

Having Problem to connect MongoDB ~ remove useCreateIndex:true, this line :)

sayanmaitra
Автор

stuck at this

[nodemon] starting `node server.js server.js`


^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module imported from
Did you mean to import ../config/db.js?
at new NodeError (node:internal/errors:372:5)
at finalizeResolution
at moduleResolve
at defaultResolve
at ESMLoader.resolve
at ESMLoader.getModuleJob
at ModuleWrap.<anonymous>
at link {
code: 'ERR_MODULE_NOT_FOUND'
}
[nodemon] app crashed - waiting for file changes before starting...

ScienceSeekho
Автор

Thank your for your tutorial! It's awesome! I'm getting this error when trying to run backend: Error [ERR_REQUIRE_ESM]: Must use import to load ES Module

tfogli