Connect MongoDB with Node.js using mongoose | MongoDB + Express.js

Sdílet
Vložit
  • čas přidán 2. 06. 2024
  • In this video I have shown how you can connect MongoDB database (NoSQL Database) with Node.js using mongoose. I have written the code using express.js in javascript for connecting with mongoDB.
    Source Code Link : codewitharjun.com/connect-mon...
    Install MongoDB / Compass in Windows : • Install mongoDB and Mo...
    Install MongoDB / Compass in Mac : • Install mongoDB and Mo...
    Install MongoDB / Compass in Ubuntu : • Install mongoDB and Mo...
    Related Tutorials :
    MERN Stack CRUD : • RESTful CRUD API using...
    Full Stack Spring / React : • Full Stack Spring Boot...
    TimeStamps :
    00:00 - Introduction
    00:10 - Create Database with MongoDB Compass
    01:05 - Install npm packages
    03:35 - Create environment variable using .env file for PORT and MongoDB URL
    04:35 - Connect mongoDB with Node.js using mongoose
    07:30 - Add users data into database
    07:58 - Code for getting data from database
    09:43 - Check the result
    10:33 - Outro
    PayPal : paypal.me/codewitharjun
    Patreon : / codewitharjun
    ➡️ Subscribe : / codewitharjun
    Stay Connected :
    ➡️ LinkedIn : / arjungautam1
    ➡️ Github : github.com/arjungautam1
    Join Community :
    ➡️Discord : / discord
    Follow me on :
    ➡️ Medium: / codewitharjun
    ➡️ Dev.to : dev.to/codewitharjun
    #mongodb #mongoose #nodejs #CodeWithArjun #Programming
  • Věda a technologie

Komentáře • 14

  • @newtonwakhungu9597
    @newtonwakhungu9597 Před dnem +1

    Great video for beginners...thanks for that..next time do a video using mongo vs code extension..

  • @josuedurandpebe9482
    @josuedurandpebe9482 Před 24 dny +1

    I am from Peru and thanks for your video it’s a Perfect video, thanks a lot!

  • @rg_1971
    @rg_1971 Před 3 měsíci +2

    This is such a great and easy to follow tutorial, thank you for sharing.

  • @VGS_7
    @VGS_7 Před měsícem +1

    do a video so that we dont need mongo db compass ... we connect it with only a nodejs file and send data using a node js file itself

  • @QuanTran-wt4yt
    @QuanTran-wt4yt Před měsícem

    hmm. You have only connected once so does it have any effect? I suggest that you should only connect when calling the api and close the connection when done. What do you think?

  • @tahep3906
    @tahep3906 Před 3 měsíci +1

    I've been looking for this kind of tutorial, most of the videos around on this subject are deprecated, thanks a lot and I'm looking forward to new ones

  • @fam.agucci1237
    @fam.agucci1237 Před měsícem +1

    Simplest is the best . your explaination was so Great!!! Arjun.👍

  • @thanonhari9643
    @thanonhari9643 Před 3 měsíci

    Thank you Arjun, very intersting and helpful great!!!

  • @recian_siya5378
    @recian_siya5378 Před měsícem +1

    Thank you sir ❤

  • @wajdefadool3459
    @wajdefadool3459 Před měsícem +1

    thank you for the help