How to Connect Node.js App to MongoDB | Node.js & MongoDB Tutorial

  Рет қаралды 107,076

Arpan Neupane

Arpan Neupane

2 жыл бұрын

Hey guys, welcome back! In this video, I will be showing you how you can connect your Node.js application to MongoDB. I'll be walking you through signing up, creating a cluster, and connecting your application to the cluster.
If you don't know what MongoDB is, MongoDB is a document-oriented database that stores data in JSON-like documents with dynamic schemas. It is most commonly used in the back-end for web applications and is the leading NoSQL database and can be used in many different ways, from a simple key-value store to a complex full-text search engine.
If you don't know what Node.js is, Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
My Website: arpanneupane.com
My GitHub: github.com/arpanneupane19
Official Express Documentation: expressjs.com/
Official Mongoose Documentation: mongoosejs.com/docs/guide.html
Code in this video: github.com/arpanneupane19/Nod...
My Programming Gear :
Keyboard: amzn.to/42vXkxh
Laptop: amzn.to/3CkAP3W
Laptop Stand: amzn.to/3X116Oi
Desk: amzn.to/43wmIEt
Monitor: amzn.to/42BAaFH
Monitor Arm: amzn.to/3NR0APS
Chair: amzn.to/42vvKAn
Desk Mat/Mousepad: amzn.to/43AhKqj
Microphone: amzn.to/45RuQ43
Headphones: amzn.to/445sf4R
#LearnToCode // #Node // #MongoDB // #Web

Пікірлер: 83
@samuelomotoso1932
@samuelomotoso1932 5 ай бұрын
I struggled with this for hours, watching different tutorials but this was so straight to the point. Thanks.
@dh1569
@dh1569 3 ай бұрын
Finally, someone who writes an accurate title. Nice and efficient. Great video!
@traezeeofor
@traezeeofor 5 ай бұрын
Thanks for this man. 2nd video of yours I'm watching. The other was a beginner nodejs/Express project. This is my first MongoDB project. Keep up the good work!
@milesthomas3317
@milesthomas3317 2 жыл бұрын
Very easy to follow along, and no time wasted! Great tutorial as always!
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Thank you for your continued support!
@dushyantyadav7740
@dushyantyadav7740 Жыл бұрын
Such a simple and Perfect tutorial which I wanted
@joelsjunk239
@joelsjunk239 Жыл бұрын
This helped me a ton after having many headaches trying to connect to mongodb by myself! Thanks!
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
Of course!
@ngouendgerard4114
@ngouendgerard4114 Жыл бұрын
Very grateful Arpane you split part to be well understood by beginners
@29snapdragons
@29snapdragons Жыл бұрын
Thanks - easy steps to follow!
@kwanelekhumalo
@kwanelekhumalo Жыл бұрын
Took something that most people complicated and then you simplified it. Not too much explaining that's unnecessary. Great video on this!!
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
Thanks!!
@peterkabiru5144
@peterkabiru5144 Жыл бұрын
very true. I followed along and the database connected Asap! like..I wasn't believing it ..after a watching many videos with failed attempt.
@koayzhengliang6818
@koayzhengliang6818 Жыл бұрын
Great tutorial video, thanks!
@hj1916
@hj1916 Жыл бұрын
You really nailed it! Thank you~!!!!
@jedryan5061
@jedryan5061 Жыл бұрын
I love you man. Make my life so much easier
@rotr8196
@rotr8196 Жыл бұрын
great tutorial, thanks
@darjijenish
@darjijenish Жыл бұрын
Thanks Bruh.. Helps me a lot
@liloscar121699
@liloscar121699 Жыл бұрын
most helpful video I've seen
@jm_studio4908
@jm_studio4908 Жыл бұрын
Thank you a lot Arpan^^ , great job !
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
Most welcome!
@rakibhossianraju941
@rakibhossianraju941 Жыл бұрын
Thank You soo much for making this video it is really helpful
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
Of course!
@chauloannguyen1954
@chauloannguyen1954 11 ай бұрын
very helpful. thank you
@amiralikarimi2449
@amiralikarimi2449 Жыл бұрын
thank it was very helpful
@shiva_gaming8122
@shiva_gaming8122 Жыл бұрын
thanks bro it helps me lot
@blottolotto7648
@blottolotto7648 Жыл бұрын
perfect. thanks!
@m.c1299
@m.c1299 Жыл бұрын
Thank you for the video idk why but this is the only video that worked for me ? Every other time it wouldn't connect? Thanks again!
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
Glad I could help
@19cornholio90
@19cornholio90 Жыл бұрын
Great vid!
@himo5666
@himo5666 Жыл бұрын
Would it be any different if you installed mongodb locally on your computer and used it as an application rather than through the website (cloud)?
@Quadropheniaspain
@Quadropheniaspain Жыл бұрын
contenido extenso y muy útil caballero. enhorabuena y gracias 👌
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
¡Gracias por ver!
@MohamedReda-yi7xd
@MohamedReda-yi7xd Жыл бұрын
thank you, it worked!
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
You're welcome!
@alejandro93102
@alejandro93102 11 ай бұрын
Best Video Ever!
@underbedmonstersmusic
@underbedmonstersmusic Жыл бұрын
great video
@eraybaydemir8240
@eraybaydemir8240 Жыл бұрын
THANK YOU
@putinsarmy6861
@putinsarmy6861 Жыл бұрын
Even the beast approves
@tulioerna6922
@tulioerna6922 Жыл бұрын
is it mandatory to create an account? What If I just want to test my stuff locally using the ecompass from mongo and my node setup?
@kevinmaurice1531
@kevinmaurice1531 4 ай бұрын
life saver
@tarang5757
@tarang5757 Жыл бұрын
Hey there what is the visual studio code theme?
@jaop5281
@jaop5281 10 ай бұрын
thank you so much
@ArpanNeupaneProductions
@ArpanNeupaneProductions 10 ай бұрын
No problem
@aghazadajamil5628
@aghazadajamil5628 Жыл бұрын
bro what is your vscode theme and font colors?
@kaushalyahansana5844
@kaushalyahansana5844 7 ай бұрын
perfecto :)
@daughter_of_chitkute0611
@daughter_of_chitkute0611 3 ай бұрын
inside one connection if I want to connect to a specific database then how am I supposed to do it??
@muhammadshoaib9014
@muhammadshoaib9014 2 ай бұрын
Very very Nice tutorial
@ArpanNeupaneProductions
@ArpanNeupaneProductions 22 күн бұрын
Thank you! Cheers!
@mohammedelmasry648
@mohammedelmasry648 Жыл бұрын
thanks
@baaserosman8546
@baaserosman8546 Жыл бұрын
Perfect
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
Thanks!
@mr.x5131
@mr.x5131 Жыл бұрын
Bro did u use any rest Api here..?
@user-jb8de9sd1y
@user-jb8de9sd1y 4 ай бұрын
good
@chidinmaonyeri7078
@chidinmaonyeri7078 5 ай бұрын
Please how do I know the terminal to use I'm quite confused on that part
@pietrorodrigues3008
@pietrorodrigues3008 Жыл бұрын
Thank you, i'm connected to my Database! I tried a few times and it didnt work
@ranshikamihiran9215
@ranshikamihiran9215 Жыл бұрын
🤙
@korbol1847
@korbol1847 Жыл бұрын
What's your keyboard and vs code theme? 😅
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
My keyboard is a Keychron K2 V2 Wireless Mechanical Keyboard and my color theme is the Panda Theme from VSCode Extensions.
@ankitpanda1860
@ankitpanda1860 2 жыл бұрын
While connecting to cluster why can't I see myFirstDatabase option in the connection string?
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Do you mean the connection string in the video or the connecting string that's shown on the webpage?
@Xxxsorrow
@Xxxsorrow Жыл бұрын
Yeah it's different for me, too. There is no database name in my string when I copy it from the website.
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
@@Xxxsorrow What is the name that you chose for the database?
@loyal_believers8707
@loyal_believers8707 Жыл бұрын
how can we develop a log in registration form and authenticate it ?
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
If you're using Node and another frontend library (React, Angular, etc), you can use JWT authentication. If you're just using Node and HTML, you can use sessions.
@vijaychandupasupuleti1601
@vijaychandupasupuleti1601 Жыл бұрын
Error connecting to the database: MongoServerError: bad auth : authentication failed at Connection.onMessage (C:\Users\vijay.chandhu\Desktop ew-mern\mern-login-system-2022\server ode_modules\mongodb\lib\cmap\connection.js:207:30) at MessageStream. (C:\Users\v
@devngecu
@devngecu Жыл бұрын
am getting an error "URI malformed, cannot be parsed".................Please help
@hellogaiz171
@hellogaiz171 Ай бұрын
I guess the interface is different now, could you update
@flaviopalomba6577
@flaviopalomba6577 Жыл бұрын
comm sfaccimm t'am vita mij thank you so much
@SalimOfShadow
@SalimOfShadow 4 ай бұрын
O sfacimm sono felice che tu ce l'abbia fatta
@MieMie-zp1lo
@MieMie-zp1lo Жыл бұрын
Hello, I can't connect with mongodb and nodejs . Please help me!
@aku9018
@aku9018 Жыл бұрын
Connect chaetharno
@wiselychosen7454
@wiselychosen7454 2 жыл бұрын
how long have you been coding?
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
I believe for about 2.5 years.
@aku9018
@aku9018 Жыл бұрын
@@ArpanNeupaneProductions connecting between mongobd and node il connect function wrk chaeyunillaalo y ? Ariyamo?
@sadiqdaniel
@sadiqdaniel Жыл бұрын
It's important not to use a public network
@kakerake6018
@kakerake6018 Жыл бұрын
7:54 what? there's a part missing here
@vaneer1335
@vaneer1335 Жыл бұрын
a single frame revealed your ip address
@inam.ur.rehmannami9756
@inam.ur.rehmannami9756 Жыл бұрын
Kia aap ko urdu ni haati
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
Mujko Nepali, Hindi, aur Urdu aati hain.
@ramsey2155
@ramsey2155 5 ай бұрын
Why are you afraid of people seeing your IP... -_-
@johnrhunor4383
@johnrhunor4383 Жыл бұрын
if you get the DeprecationWarning that means you're working in the latest mongodbversion like me so what you do is in the line inside the async function async function connect(){ try{ mongoose.set('strictQuery', true); await mongoose.connect(uri); // await mongoose.connect(uri); console.log("connected to mongoDB"); }catch(error){ console.error(error); } } connect();
Connecting NodeJS with MongoDB | Mongoose + Express
19:18
Piyush Garg
Рет қаралды 82 М.
MongoDB Crash Course
29:59
Web Dev Simplified
Рет қаралды 651 М.
The Noodle Picture Secret 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 29 МЛН
Wait for the last one! 👀
00:28
Josh Horton
Рет қаралды 12 МЛН
Why You Should Always Help Others ❤️
00:40
Alan Chikin Chow
Рет қаралды 121 МЛН
Node.js Crash Course Tutorial #9 - MongoDB
35:56
Net Ninja
Рет қаралды 424 М.
Connect MongoDB with Node.js using mongoose | MongoDB + Express.js
10:44
Node.js Passport Login System Tutorial
36:28
Web Dev Simplified
Рет қаралды 1 МЛН
Ryan Dahl introduces JSR at DevWorld 2024
29:13
Deno
Рет қаралды 98 М.
Build A Restful Api With Node.js Express & MongoDB | Rest Api Tutorial
53:55
Learn Node.js & Express with Project in 2 Hours
1:42:53
Dipesh Malvia
Рет қаралды 480 М.
После ввода кода - протирайте панель
0:18
i like you subscriber ♥️♥️ #trending #iphone #apple #iphonefold
0:14
Мечта Каждого Геймера
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,6 МЛН