How to Create and Connect MongoDB Atlas Database in Node JS MongoDB - MongoDB Atlas connects Node JS

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 227

  • @SyedArhamAli-k8r
    @SyedArhamAli-k8r Год назад +12

    watched 7 videos didn't work but you are life saver

  • @pingpong5563
    @pingpong5563 9 месяцев назад +8

    I wasted my 2 days in learning - how to make connection, and you showed it in few minutes.
    Thank you so much

  • @Soulcode-k
    @Soulcode-k 14 дней назад +2

    Thank you So much I got frustrated because I am trying for days now and none of the other methods worked for me.
    This method worked surprisingly fast ❤❤❤❤❤

  • @arslansafdar1783
    @arslansafdar1783 Год назад +1

    I was struggling since many days, can't find solution , but sir your video sort out my problem... Hats off to you Sir🎉🎉

  • @mukangwakalonda7726
    @mukangwakalonda7726 6 месяцев назад +1

    Despite the language i don't understand but you were born as a master of problems solver keep up the good jobe bro

  • @fromImaginationToReality
    @fromImaginationToReality 8 месяцев назад +1

    thank you so much yaar , it worked well and since im writting this comment it means a lot to me as i was stuck in mongo connection since 3 hrs ... but your video saved a pile of time and efforts

  • @IradukundaHeritier
    @IradukundaHeritier 9 месяцев назад +3

    thank you so much i spent much time in lack of this video🙏🙏

  • @srinivasak4087
    @srinivasak4087 Год назад +2

    Thanks lot Sir! your video helped me to connect to DB , i was struggling from last few hourss , now after seeing your video issue resolved , Thank you!

  • @Gyancss
    @Gyancss 5 месяцев назад +1

    after so many videos you solved my problem .... thank you sir 💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖

  • @shivikagarg3006
    @shivikagarg3006 8 месяцев назад +1

    Savior video! Thank you so much

  • @bookofraj
    @bookofraj 10 месяцев назад +1

    very nicely explained sweet n short

  • @success-quotes-hub
    @success-quotes-hub 10 месяцев назад +1

    such a nice video, bro i was very confused in this thank you so much you are such a great keep going brooo.

  • @indurani5744
    @indurani5744 6 месяцев назад +1

    Thanks buddy ...you are a savior

  • @AS-mc2db
    @AS-mc2db Год назад +1

    ZABRDAST YAR. GREAT VIDEO

  • @aarushyadav8709
    @aarushyadav8709 3 месяца назад +1

    Very well explained , thanks

  • @Surajverma003
    @Surajverma003 8 месяцев назад +1

    Gooood job brother keep it up 🔥...

  • @amstudio3386
    @amstudio3386 6 месяцев назад +2

    awesome... solved my problem

  • @swatiamberkar5267
    @swatiamberkar5267 8 месяцев назад +1

    Thank you so much bro. Good Job 👍👍

  • @lalitpatil2456
    @lalitpatil2456 5 месяцев назад +1

    Thank you so much... it's very helpful to me ❤

  • @chiragvarshney8132
    @chiragvarshney8132 4 месяца назад +2

    Thank you very much bro ... ❤

  • @SadafAmeer-t9t
    @SadafAmeer-t9t 8 месяцев назад +1

    Thank you so much brother

  • @StudyEmail-p9u
    @StudyEmail-p9u 4 месяца назад +2

    Thank You!!

  • @pranavkewate4760
    @pranavkewate4760 6 месяцев назад +1

    Thnx bro.. It's working

  • @alenagrick7872
    @alenagrick7872 Год назад +2

    Bro very very thanks

  • @manojrawat5756
    @manojrawat5756 7 месяцев назад +1

    Kay baat hai bahi aajkal har jagah chaye hue ho 😂😂❤❤

    • @ProgrammingExperience
      @ProgrammingExperience  7 месяцев назад

      Aisa kya 😅, kya location hein apki, sab aap logo ki hi kripa hein baise.

    • @manojrawat5756
      @manojrawat5756 7 месяцев назад +1

      Delhi se hai bahi​@@ProgrammingExperience

    • @ProgrammingExperience
      @ProgrammingExperience  7 месяцев назад

      Accha accha 👍

    • @manojrawat5756
      @manojrawat5756 7 месяцев назад +1

      @@ProgrammingExperience bahi aap kaha se ho

    • @manojrawat5756
      @manojrawat5756 7 месяцев назад +1

      ek doubt hai ye locally work kar raha hai par server par upload hote hi error de Raha hai atlas cluster ip whitelist ka

  • @babarali-qc4xe
    @babarali-qc4xe Год назад +1

    Thanks alot sir!

  • @rockygaming3663
    @rockygaming3663 4 месяца назад +1

    Done thank youu ❤

  • @shahzadmukhtar8400
    @shahzadmukhtar8400 5 месяцев назад +1

    thank u

  • @pitaji_badewale
    @pitaji_badewale Год назад +2

    Thanks Bro

  • @vijaikannan3143
    @vijaikannan3143 2 месяца назад +1

    Hi, Thanks for your video. After creating user, Unser "Where would you like to connect from" , instead of choosing "My local Environment", I choose "Cloud Environment", Let me know how to rectify this. (4:32)

    • @ProgrammingExperience
      @ProgrammingExperience  2 месяца назад

      Pls mail me, I have not understand what are the your properly mean.

    • @vijaikannan3143
      @vijaikannan3143 2 месяца назад +1

      @@ProgrammingExperience Thanks a lot for your quick response. I have mailed you with screenshot. Will help a lot for me.

    • @ProgrammingExperience
      @ProgrammingExperience  2 месяца назад

      @vijaikannan3143 okay i will check in my free time.

    • @vijaikannan3143
      @vijaikannan3143 2 месяца назад +1

      Thanks a lot for your clarification which you gave in off line, Appreciate your quick response.

    • @ProgrammingExperience
      @ProgrammingExperience  2 месяца назад

      Your welcome brother 👍

  • @nimishnandedkar9278
    @nimishnandedkar9278 7 месяцев назад +1

    Thx brother

  • @lokeshkharkwal5393
    @lokeshkharkwal5393 9 месяцев назад +1

    Thanks

  • @Noobinglish
    @Noobinglish 11 месяцев назад +1

    Okay this video is really helpful. ow the same thing but one little change "How to store dynamic data that comes from frontend?" please make one video about this problem.
    Or anyone in this comment section can help me with the same problem?

    • @ProgrammingExperience
      @ProgrammingExperience  11 месяцев назад

      You need to use normal crud operations for take action with data.

  • @Random_Videos-ix5bd
    @Random_Videos-ix5bd Год назад +1

    Thanks bro

  • @nikhilgudadhe8785
    @nikhilgudadhe8785 Год назад +1

    Thank you!

  • @rockykgf8507
    @rockykgf8507 5 месяцев назад +1

    Showing an error using type:"module" in package.json
    The requested module './model/models.js' does not provide an export named 'Users
    directory is ./model/model.js write same code as yours
    in index.js import { Users } from "./model/model.js";
    Thats not working how to solve this

    • @ProgrammingExperience
      @ProgrammingExperience  5 месяцев назад +1

      Pls remove node modules and package-lock.json file then again install npm

  • @anilkumar-ih8bd
    @anilkumar-ih8bd Год назад +2

    brother I need help , how to Resolve this error "Operation ` users.insertOne () ` buffering timed out after 10000ms."

  • @TechTrendSpectrum
    @TechTrendSpectrum 6 месяцев назад +1

    hey, if you have created a video on star rating / user feedback using mvc , node js, mongodb
    please provide me link , I need it.
    regards

    • @ProgrammingExperience
      @ProgrammingExperience  6 месяцев назад

      I have not created yet, but i will create lecture on ratings based.

    • @TechTrendSpectrum
      @TechTrendSpectrum 6 месяцев назад +1

      @@ProgrammingExperience any estimation when?
      I need in a week for my project.
      i have seen your playlist regarding UMS, so I want to continue with same channel.

    • @ProgrammingExperience
      @ProgrammingExperience  6 месяцев назад

      @RandomFuel0 currently already running a project in node js, and after i will create rating system in node js, may be i will start middle in next month.

    • @TechTrendSpectrum
      @TechTrendSpectrum 6 месяцев назад +1

      @@ProgrammingExperience oh it would be too late, but it’s okay.
      Humble thanks for answering my queries.

    • @ProgrammingExperience
      @ProgrammingExperience  6 месяцев назад +1

      @RandomFuel0 your welcome brother 👍

  • @ghinasaleem1866
    @ghinasaleem1866 7 месяцев назад +1

    Agr mene pehle h bht sa code app.js m run krwa chuki hon to kese kro yeh kindly pta dein yeh disturb to ni kray ga na baqi code ko

    • @ProgrammingExperience
      @ProgrammingExperience  7 месяцев назад

      Nahi karega, bas yeh atlas ko add kar do mongoose jahan require kiya hein usi ke just niche.

  • @monikakanojia8350
    @monikakanojia8350 6 месяцев назад +1

    After creating a project it shows me create a cluster instead of create a database..
    Can i move forward with that?

    • @ProgrammingExperience
      @ProgrammingExperience  6 месяцев назад

      Yes

    • @monikakanojia8350
      @monikakanojia8350 6 месяцев назад +1

      @@ProgrammingExperience one more doubt when I connect to the database earlier it displayed that connected to the database..but now it throws an error saying "Some error occurred while connecting to database MongoServerErrorSelectionError: could not connect to any server in your Mongodb Atlas cluster." And reason is IP is not whitelisted

    • @ProgrammingExperience
      @ProgrammingExperience  6 месяцев назад

      @monikakanojia8350 pls add IP 0.0.0

  • @HistoricalStories49
    @HistoricalStories49 3 месяца назад +1

    How is the name in database shown as users,in the code in model you have mentioned User

    • @ProgrammingExperience
      @ProgrammingExperience  3 месяца назад

      I think your basics is not clearly, model already create with singular name, but in db collection name will show always plural name.

    • @HistoricalStories49
      @HistoricalStories49 3 месяца назад +1

      @@ProgrammingExperience ok how a database name with test is showing up,I don't see it in code

    • @HistoricalStories49
      @HistoricalStories49 3 месяца назад +1

      @@ProgrammingExperience nevermind I found it mongodb automatically creates a database called test by default and also adds s or es to pluralize collection name

    • @ProgrammingExperience
      @ProgrammingExperience  3 месяца назад

      Yeah, you can create own databases also.

  • @ProminentFox
    @ProminentFox 7 месяцев назад +2

    How do I connect it to a langflow node? I'm really stumped 😢

  • @kainaatlone
    @kainaatlone 10 месяцев назад +1

    Sir test database ko change kasay kr sakty ha? Matlab apna database name rakh saky or direct data wohi pa ajaye...jasay agar may rakhun mern_stack or users es may ajaye direct tou ye kasay kr sakty ha?

    • @ProgrammingExperience
      @ProgrammingExperience  10 месяцев назад +1

      Aap tahi to kehna chahte ho ki agar aap ek database banate ho mern_stack karke to usme users store karne heim to kaise karu ?
      Agar yeh question hein to simple hein db create karo mern_stack name se usme users ka collection create karke usme users document store karte jao.

    • @kainaatlone
      @kainaatlone 10 месяцев назад +1

      @@ProgrammingExperience Han yahi same ....may na mern_stack db create ki thi and users collection b banae thi but jasay hi data store kia khud say again test create huv and ussi may jakay users collection b create hogae or us may data store hogeya and mern_stack db jo tha us may users collection may kuch nahi aya . Ye problem ha. Delete krnay k baad b test create hokay us may store hojata ha or jo khid say mern stack create kia tha us may nahi aya

    • @ProgrammingExperience
      @ProgrammingExperience  10 месяцев назад

      @kainaatlone mujhe aap confused kar rahe ho pehle bola apne data store ho gaya fir bol rahe ho nahi hua 🤷, samajh nahi aya mere ko

    • @kainaatlone
      @kainaatlone 10 месяцев назад +1

      @@ProgrammingExperience
      I want to say tha jub first time data store kia tou by default test k andar users create hua or waha pa store hua ....
      Secondly may na wo test data base delete kia or khud say mern stack name say database bana li and users collection b create kia then data send kia tou mernstack database/user's may store nahi hua lakin again say test khud say create hogeya or ussi may jakay users data store hua ..........test tou delete kia tha ab mernstack database may ana chaye tha but waha tou aya hi nahi ....

    • @ProgrammingExperience
      @ProgrammingExperience  10 месяцев назад

      😁 hmm ab samajh aya brother, accha ab aap yeh bataye ki aap CMD used kar rahe honge right?
      Agar CMD used kar rahe ho to sabse pehle mern_stack db ko used karna hoga then usme data insert karna hoga.
      Agar aap code ke bases par kar rahe hein to uske liye apko db ka name change karna hoga code mein.
      & Sayad aap compass se to nahi kar rahe honge.

  • @mafuzurrahman6573
    @mafuzurrahman6573 9 месяцев назад +1

    please help bai,
    bro , me correct ip diya hu,, mongo ke suggested ip bi diya hu, firbi connect nehi horahe, error derahahe ip not in whitelist something like that

    • @ProgrammingExperience
      @ProgrammingExperience  9 месяцев назад

      0.0. something hi ip diya tha na apne?

    • @mafuzurrahman6573
      @mafuzurrahman6573 9 месяцев назад +1

      0.0 denece kam karta he leken suggested my ip address denese kam nehi karta@@ProgrammingExperience

    • @ProgrammingExperience
      @ProgrammingExperience  9 месяцев назад +1

      Par brother mein 0 karke hi pass karya hu, tab connect ho jata hein

    • @mafuzurrahman6573
      @mafuzurrahman6573 9 месяцев назад +1

      ok bro thanks,,, anyway sir if you can make a video on fixing connection issue with own ip address connection, I will be very greateful to you@@ProgrammingExperience

    • @ProgrammingExperience
      @ProgrammingExperience  9 месяцев назад +1

      @mafuzurrahman6573 i have no own ip brother.

  • @bindasgamer5942
    @bindasgamer5942 5 месяцев назад +1

    Thanks Bhai All is going well but db not connecting

    • @ProgrammingExperience
      @ProgrammingExperience  5 месяцев назад

      Is any error coming?
      If error is not coming then you need to insert atleast one record in your collection.

    • @aysell-os1cy
      @aysell-os1cy 4 месяца назад +1

      ​@@ProgrammingExperience my db is connected but the query is 0 and when I do that in thunderbolt the status shows 404 NOT FOUND

    • @aysell-os1cy
      @aysell-os1cy 4 месяца назад +1

      ​@@ProgrammingExperiencewhat should I do??

    • @aysell-os1cy
      @aysell-os1cy 4 месяца назад +1

      ​@@ProgrammingExperienceAnd in mongodb I changed my project connection to a new connection and pasted the new url in VS code but it is still no showing hat am I suppose to do

    • @ProgrammingExperience
      @ProgrammingExperience  4 месяца назад

      pls check the permission issue in mongo cluster.

  • @World_information5568
    @World_information5568 Год назад +1

    Sir hum mongoose ka session function q use kertay hain just concept chahye for example session.startTransection and
    Session.commitTransection etc
    Matalb humay kab session use kerna chahye bass ya bta dein kindly.

    • @ProgrammingExperience
      @ProgrammingExperience  Год назад

      If you want to create a transaction, then you need to create session.

    • @World_information5568
      @World_information5568 Год назад +1

      @@ProgrammingExperience transection kab use hoti ya b bta dein kindly 😅 humay kab pata chlay ga k ab humay transection use kerni chahye .

    • @ProgrammingExperience
      @ProgrammingExperience  Год назад

      @@World_information5568 transaction hum tab used karte hein, jab hum chahte ki jo data hum create kar rahe hein us par multiple operations perform karna chahte hein like undo ya koi operation fail ho jata hein.

    • @World_information5568
      @World_information5568 Год назад +1

      @@ProgrammingExperience bohat shukerya Sir ❤️😊❤️❤️

    • @ProgrammingExperience
      @ProgrammingExperience  Год назад

      @@World_information5568 dhanyawad brother 👍

  • @swapnildutta2104
    @swapnildutta2104 5 месяцев назад +1

    Bro it's showing create a cluster instead of database, when I create from collection the connection string is not working, what to do?

    • @ProgrammingExperience
      @ProgrammingExperience  5 месяцев назад

      Pls see carefully, i have explained all thing, first of all you need to create db then create cluster url.

    • @swapnildutta2104
      @swapnildutta2104 5 месяцев назад +1

      @@ProgrammingExperience Yes I have watched it twice sir, the thing is the GUI shows create a cluster instead of create a database, so when I create the cluster and under collections I tried creating the database, when tried to get the connection string, it throws an error

    • @ProgrammingExperience
      @ProgrammingExperience  5 месяцев назад

      @swapnildutta2104 pls mail me your issue

    • @swapnildutta2104
      @swapnildutta2104 5 месяцев назад +1

      @@ProgrammingExperience sure sir, may I get your mail id?

    • @ProgrammingExperience
      @ProgrammingExperience  5 месяцев назад

      @swapnildutta2104 pls check channel description

  • @vishnuvijayan1372
    @vishnuvijayan1372 Год назад +1

    Brother mongoose buffering issues. That is mongoose connectiing issues or code error

  • @AnushkaGupta-x6w
    @AnushkaGupta-x6w 5 месяцев назад +1

    bhai apne test daatbase th banaya nahi tha, toh yeh apne aap kasie ban gaya, jab apne User me schema vala path dala? mera toh nahi bana test database

    • @ProgrammingExperience
      @ProgrammingExperience  5 месяцев назад

      Behen ban jayega, aap ek document insert kariye user collection mein.
      Agar fir Nahi banta hein to aap mujhe batana.

  • @RVB938
    @RVB938 3 месяца назад +1

    Is This we connect with html code

  • @sourabhlodhi1675
    @sourabhlodhi1675 Год назад +1

    Sir aap titile me in hindi dala kare jis se searching keywords me aa sake

    • @ProgrammingExperience
      @ProgrammingExperience  Год назад +1

      Apko jab search karte honge to aap yeh sochte honge ki sayad yeh lecture English mein hoga right?

    • @sourabhlodhi1675
      @sourabhlodhi1675 Год назад +1

      @@ProgrammingExperience sir aap bahut acha samjate hai thank you sir hindi me Jaldi Samaj ata hai

    • @ProgrammingExperience
      @ProgrammingExperience  Год назад

      @@sourabhlodhi1675 okay brother 👍

  • @SATYAPRAKASHSINGH-ps5eu
    @SATYAPRAKASHSINGH-ps5eu Год назад +1

    Bhai async await try catch bhul gya hai kya

    • @ProgrammingExperience
      @ProgrammingExperience  Год назад

      Bhai ek baat bolu bura mat manna par yeh real hein.
      Bhai agar apne title thik se read kiya ho to, Yeh lecture bana hein particular mongodb atlas ko connect karne ke liye, or is lecture mein only usi ki process batayi hein.
      Yaar itna common sense hona chahiye apko ki isme async await to tum bhi add kar sakte ho, to kya mein bilkul zero se start karu.
      Agar async await padna hein node js ko start kar do particular aapse bol raha hu tabhi apko async await ayega.
      Baat bahut kadbi hein par yeh sach hein.🙂

  • @kiranpandya138
    @kiranpandya138 Год назад +1

    Hello sir mere pc me nahi ho raha he database create please hekp kijiye na

    • @ProgrammingExperience
      @ProgrammingExperience  Год назад

      Okay i can help you on Saturday or Sunday, you can send me mail on my mail with your issue.

    • @kiranpandya138
      @kiranpandya138 Год назад +1

      @@ProgrammingExperience Thank you sir for reply But now its done Thank you once again.

    • @ProgrammingExperience
      @ProgrammingExperience  Год назад

      @@kiranpandya138 your welcome dear 👍

  • @appcode-u3t
    @appcode-u3t Год назад +1

    there is problem schemas added twice and you forgot to tell how to add another one records

    • @ProgrammingExperience
      @ProgrammingExperience  Год назад +1

      Brother pls check on your side, scheme has not created multiple, and you need to add record same as first time added you.

    • @appcode-u3t
      @appcode-u3t Год назад +1

      @@ProgrammingExperience can you please make video on how to update (replace) image on cloudinary with mern stack

    • @ProgrammingExperience
      @ProgrammingExperience  Год назад

      @@appcode-u3t brother this lecture will take time to upload on this channel, because i am starting now MEAN

  • @shitalkumari4383
    @shitalkumari4383 5 месяцев назад +1

    uri is not working connection is getting failed

  • @New-Media-Academy-Life
    @New-Media-Academy-Life 9 месяцев назад +2

    how to connect with mongodb and html website

  • @DynamoParmar
    @DynamoParmar 3 месяца назад +2

    MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: -> please give slution of it because I have tried all methods to solve it.

  • @vivekdogra3040
    @vivekdogra3040 23 дня назад +1

    Sir can u help me plzz

  • @AnushkaGupta-x6w
    @AnushkaGupta-x6w 5 месяцев назад +1

    test database nahi bana mera , apne kaise banaya hai

  • @20_omkar_kadu57
    @20_omkar_kadu57 Год назад +1

    .create is not a function error he while pushing data

  • @se7en2021
    @se7en2021 10 месяцев назад +1

    I'm using import but it's not working

  • @mahimatripathi4091
    @mahimatripathi4091 7 месяцев назад +1

    Bhaiya problem aa rhi h help kr do

  • @DeePakSharMa-dy1iu
    @DeePakSharMa-dy1iu 9 месяцев назад +1

    help

  • @mdkaish19
    @mdkaish19 3 месяца назад +1

    Node.js v19.4.0
    [nodemon] app crashed - waiting for file changes before starting...
    terminal showing this why..?😪😪

    • @ProgrammingExperience
      @ProgrammingExperience  3 месяца назад

      Pls remove the package-lock.json and node_modules folder, then run npm install command.
      Pls try and test.

  • @Computer_Mind-k3b
    @Computer_Mind-k3b 8 месяцев назад +1

    please try to speak english for me please

  • @MSUHAILP
    @MSUHAILP 5 месяцев назад +1

    thank you

  • @virtualrealitymessenger
    @virtualrealitymessenger 6 месяцев назад +1

    thanks bro

  • @rudranarayanratha5313
    @rudranarayanratha5313 9 месяцев назад +1

    Thanks

  • @SmartBazar-v3l
    @SmartBazar-v3l 2 дня назад +1

    Bhaiya problem aa rhi h help kr do

  • @krishnusingh7223
    @krishnusingh7223 8 месяцев назад +1

    Thanks