How to connect database in MERN with debugging

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ต.ค. 2024

ความคิดเห็น • 1.7K

  • @chaiaurcode
    @chaiaurcode  ปีที่แล้ว +140

    hitesh.ai/whatsapp
    Join here for all updates

    • @yogeshsaini9021
      @yogeshsaini9021 ปีที่แล้ว +1

      Congratulations sir for 100k

    • @ShivamKumar-uw1il
      @ShivamKumar-uw1il ปีที่แล้ว

      Sarkar ab tohh 100k ho gya
      Ab Mac dilva do laptop kharab ho gya hai Mera
      Video b nahi dekh pa Raha hu😢😢😢

    • @jatinthakur2501
      @jatinthakur2501 ปีที่แล้ว

      You are the best explainer on TH-cam sir. I didn't find this kind of information related to production practices anywhere on TH-cam or on paid courses as well.
      At last congratulations for 1 lAkhs subscribers.

    • @kuntalojhadev
      @kuntalojhadev 10 หลายเดือนก่อน

      Chai aur Code #ChaiaurCode @chaiaurcode

    • @chusama2225
      @chusama2225 9 หลายเดือนก่อน

      thanks bhai for teaching backend love from pakistan

  • @djpreyas5738
    @djpreyas5738 7 หลายเดือนก่อน +82

    This is not a connection of professtional mongoDB .....this is connection of heart to heart and brain to brain. you are best teacher whom i meet on youtube.

  • @shoaib_akhtar_1729
    @shoaib_akhtar_1729 หลายเดือนก่อน +5

    24:00: DB is another continent, hence use promises or try-catch with async-await whenever you are connecting to any database, thanks Hitesh Sir for teaching with this much clarity!
    1. Assignments :
    - Read about process and exit() method in nodejs
    - Console log karke dekho joh object DB connect hone par return hota hai.
    2. Tips:
    - Read the errors before referring to any material for resolving.
    - write error statements in a clear manner, debuggging mei help karegi.
    - env file mei change karte hi, server ko restart karna hi padega, no other option, nodemon env files ka track nahi rakhta.

  • @soniyaprasad77
    @soniyaprasad77 8 หลายเดือนก่อน +48

    Two important points about database connectivity:
    1. When connecting to databases, handling potential data-not-found scenarios is essential. Employ try/catch blocks or promises to manage errors or we can also use promises.
    key to remember : ( wrap in try-catch )
    2. Database operations involve latency, and traditional synchronous code can lead to blocking, where the program waits for the database query to complete before moving on. So, we should async/await which allows for non-blocking execution, enabling the program to continue with other tasks while waiting for the database response.
    key to remember : ( always remember the database is in another continent, so use async await)

    • @Suryakant0708
      @Suryakant0708 8 หลายเดือนก่อน +2

      Thank u for inform that 🤗

    • @Suryakant0708
      @Suryakant0708 8 หลายเดือนก่อน +3

      Hye soniya , just now I have saw your linkdin profile. Could you learned your backend from this series? Because now I am learning by backend from this series.

    • @LearnerAbhi21
      @LearnerAbhi21 8 หลายเดือนก่อน +1

      @@Suryakant0708 ​ mujhe nhi samjha... ki sir ko phir se video record kyo karna pada... pichle wale mei kya issue aaya tha

    • @ahmedsnippet
      @ahmedsnippet 7 หลายเดือนก่อน

      Error A Raha MEra (bad option: --exprimental-json-modules)

    • @ahmedsnippet
      @ahmedsnippet 7 หลายเดือนก่อน

      package.json mei -r dotenv/config YAha tk likho

  • @unstoppable-ayush
    @unstoppable-ayush 5 หลายเดือนก่อน +40

    # Connecting database in MERN with debugging
    - Created MongoDb Atlas account.
    - Created a Database and connect I.P Address to access database from anywhere.
    - Used `dotenv , mongoose , express` packages.
    - Two important points about database connectivity:
    1. When connecting to databases, handling potential data-not-found scenarios is essential. Employ try/catch blocks or promises to manage errors or we can also use promises.
    - key to remember : ( wrap in try-catch )
    2. Database operations involve latency, and traditional synchronous code can lead to blocking, where the program waits for the database query to complete before moving on. So, we should async/await which allows for non-blocking execution, enabling the program to continue with other tasks while waiting for the database response.
    - key to remember : ( always remember the database is in another continent, so use async await)
    - Used two approach to connect the database - 1. In Index File, 2. In Seprate DB file
    - Assignments -
    - console log `connectionInstance`
    - Read more about process.exit code

    • @tusharchandak2004
      @tusharchandak2004 2 หลายเดือนก่อน +2

      Thanks looking for this only

    • @riya2448
      @riya2448 11 วันที่ผ่านมา

      Hello ayush , actually I am facing issue while connecting to database . I followed all the steps along with the sir but i am getting an error saying "MONGODB connection error 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" . I literally tried everything possible but still not able to resolve it . Please help me resolve this issue

    • @unstoppable-ayush
      @unstoppable-ayush 11 วันที่ผ่านมา

      @@riya2448 you have to global assign ip address 0.0.0.0/0 to you mongodb cluster.

    • @SKD14344AK
      @SKD14344AK 11 วันที่ผ่านมา

      @@riya2448 Now your error get resolve ?? : if not kindly tell me , Where you are facing this issue , is that after running (console.log(connectionInstance)) or while doing Setup of MongoDB, Kindly breakdown the problem .

    • @riya2448
      @riya2448 11 วันที่ผ่านมา

      @@SKD14344AK nope the same error message is popping again and again. The error is coming after running npm run dev. I have added the Ip address but it is not able to connect

  • @pkgamer7860
    @pkgamer7860 7 หลายเดือนก่อน +27

    Agr koi itna indepth ja kr production level prha sakta hai to wo ap hi ho Sir. Huge respect and love from Pakistan

    • @arifsaleem-7377
      @arifsaleem-7377 6 หลายเดือนก่อน +1

      love from Lahore

    • @VikasKumar-bf5wu
      @VikasKumar-bf5wu 2 หลายเดือนก่อน +1

      Bhai Pakistan me bhi study hoti hai

    • @muhammadahsan6477
      @muhammadahsan6477 2 หลายเดือนก่อน

      ​@@VikasKumar-bf5wu Q bhai india me jahil rehty hai kia ?

  • @broke_codez
    @broke_codez 9 หลายเดือนก่อน +68

    he is the only teacher jis ka course agar main chalu krta hu toh hamesha pura khatam bhi krta hu! ty sir!!!

    • @chaiaurcode
      @chaiaurcode  9 หลายเดือนก่อน +53

      Bs aise hi dedicated students chahiye ☕️

    • @broke_codez
      @broke_codez 9 หลายเดือนก่อน +7

      @@chaiaurcode ji sirr chai aur aap (perfect combo)😂

    • @LearnerAbhi21
      @LearnerAbhi21 8 หลายเดือนก่อน +2

      ​@@broke_codez mujhe nhi samjha... ki sir ko phir se video record kyo karna pada... pichle wale mei kya issue aaya tha

    • @allthebest2060
      @allthebest2060 7 หลายเดือนก่อน +2

      @@LearnerAbhi21
      Hy everyone, i tell you sir recorded half video in english and half in hindi so its reason for re recorded video

    • @ahmedsnippet
      @ahmedsnippet 7 หลายเดือนก่อน

      Sir Error A Raha MEra (bad option: --exprimental-json-modules)@@chaiaurcode

  • @Dev-Phantom
    @Dev-Phantom 7 หลายเดือนก่อน +2

    I have never seen this type of Data base connection Lecture ever. This is GOD Level. This was a great help. Thanks sir.

  • @Kuch-Bhi-Ho-Raha
    @Kuch-Bhi-Ho-Raha 10 หลายเดือนก่อน +9

    We cannot just use the phrase THANK YOU for the kind of content you are giving.
    Worked for almost 2 years in a mnc then also I think I could not learn so much which you have taught through your videos.

  • @vaibhavsingh3453
    @vaibhavsingh3453 9 หลายเดือนก่อน +7

    The way you explain things is on whole different level ❤
    It's been 3 days i started this series and got soo much clarity in almost everything you taught.
    Thank you so much sir!❤🙏

  • @electro1146
    @electro1146 9 หลายเดือนก่อน +4

    Hats off to you!! I set a password with special characters and it was throwing errors when connecting to MongoDB, then I remembered that you told not to use special characters. Upon changing the password, the error got solved. I whole heartedly appreciate your efforts in providing such high quality content and in-depth content.

  • @asmittyagi6250
    @asmittyagi6250 7 หลายเดือนก่อน +3

    "aanand hi aajata hai jab sab samajh aajata hai" 🙏 Thank you sir .

  • @chitwan9129
    @chitwan9129 11 หลายเดือนก่อน +8

    Hats off to you Sir, You are reallly helping. Every video of yours is great. I haven't watched all of them but I am following your backend tutorials, tbh from last 4 hrs, practicing accordingly. The way you are teaching and telling every single thing what a student can think of ( kam se km mein ), every chota se chota doubt which I always faced earlier, is getting clearer. Now I know what I am writing.

  • @bm9code
    @bm9code 10 หลายเดือนก่อน +13

    connectionInstance is an object with 53 properties which are
    'connections object',
    'nextConnectionId number',
    'models object',
    'events object',
    '__driver object',
    'options object',
    '_pluralize function',
    'Schema function',
    'model function',
    'plugins object',
    'default object',
    'mongoose object',
    'cast function',
    'STATES object',
    'setDriver function',
    'set function',
    'get function',
    'createConnection function',
    'connect function',
    'disconnect function',
    'startSession function',
    'pluralize function',
    'deleteModel function',
    'modelNames function',
    'plugin function',
    'version string',
    'Mongoose function',
    'SchemaType function',
    'SchemaTypes object',
    'VirtualType function',
    'Types object',
    'Query function',
    'Model function',
    'Document function',
    'ObjectId function',
    'isValidObjectId function',
    'isObjectIdOrHexString function',
    'syncIndexes function',
    'Decimal128 function',
    'Mixed function',
    'Date function',
    'Number function',
    'Error function',
    'MongooseError function',
    'now function',
    'CastError function',
    'SchemaTypeOptions function',
    'mongo object',
    'mquery function',
    'sanitizeFilter function',
    'trusted function',
    'skipMiddlewareFunction function',
    'overwriteMiddlewareResult function'

    • @yubrajkhatri3519
      @yubrajkhatri3519 8 หลายเดือนก่อน +3

      yehi dhudne aaya tha milggya thanku

    • @chickukoshti3741
      @chickukoshti3741 7 หลายเดือนก่อน +1

      thnx

    • @adityaghosh6170
      @adityaghosh6170 6 หลายเดือนก่อน

      ha toh woh connectionInstance.connections.host nahi hoga?

    • @guptasagar694
      @guptasagar694 5 หลายเดือนก่อน

      Isme connectionInstance ke liye phir connections.host kaha he phir...kon se object me he

  • @adarshjhaxiif-1289
    @adarshjhaxiif-1289 11 หลายเดือนก่อน +5

    Sir you're a gem of teacher, I request you to please complete this series. We will make sure to compete all your targets of likes and comments.

  • @zoro-nf9pg
    @zoro-nf9pg 8 หลายเดือนก่อน +1

    after waisting 1 hour and watching several i found this video and this video help me to connect my db in 7 min what a helpful video

  • @prigo333
    @prigo333 11 หลายเดือนก่อน +5

    congratulations on 100k ...soon you will complete your next milestone 500k and then 1million and so on...your teaching style is very unique and different...i am 100% sure that on youtube no one give this level of knowledge....we are very lucky that we are in the ERA of Hitesh sir💯

  • @umaid7877
    @umaid7877 10 หลายเดือนก่อน +1

    Sirrrrr, bht pyari video hai. Abi tk bht baar connect kia hai db single line code likh ke. lekin jo aapne ye bde ache se smjaya hai 🙌. " DB is always is another continent " kbi ni bhule ga SIr. ❤

  • @kumarsubhambili3
    @kumarsubhambili3 6 หลายเดือนก่อน +4

    Concepts in Hindi is so easy to absorb. It just feels like a story

  • @mohammadshezan
    @mohammadshezan 11 หลายเดือนก่อน +34

    Since Node v20.6.0, node is supporting env file without any 3rd party library (dotenv). You have to just add --env-file in your script tag in package.json. So, your script tag will look like:
    "scripts": {
    "start": "node --env-file=.env src/index.js",
    "dev": "nodemon --env-file=.env src/index.js"
    }

    • @dungeonwolf6991
      @dungeonwolf6991 11 หลายเดือนก่อน +1

      thanks

    • @AshishRaj04
      @AshishRaj04 10 หลายเดือนก่อน +1

      Thanks bro . Much appreciated

    • @akshaysrivastava4304
      @akshaysrivastava4304 10 หลายเดือนก่อน

      thanks for the info !

    • @rapidreasearchyt
      @rapidreasearchyt 9 หลายเดือนก่อน +2

      bro thank you so much, yr 2 din ho gye the erro resolve nhi hua, aaj mei ye playlist leave krne wala tha sirf is error ki waja se, thanks yr, aapne ye solution kahan se nikala, khud kra he ya source se? and again thanks for ur comment bro ♥

    • @udayasishbora9708
      @udayasishbora9708 9 หลายเดือนก่อน

      Bro really appriciate your help....Its a real problem that I am facing from a long time...What I am doing is: cd src, then node --env-file=.env index.js, which is giving error. Just adding the src/index.js and running it from the root directory solves it. Really funny, but thanks bro.

  • @dhanrajhuli2931
    @dhanrajhuli2931 3 หลายเดือนก่อน

    sir no words for you teaching. the way you explained first IIFI , then async then try/catch .. just wow. maza agaya sir.
    The best backend series i have watched so far.. ☕☕♥

  • @NOT_TON_Fan
    @NOT_TON_Fan ปีที่แล้ว +25

    Congratulations for 100K ❤

  • @HarshKumar-ff1se
    @HarshKumar-ff1se 7 หลายเดือนก่อน +2

    40min without any distraction...pata nhi chalta 40min kaise katam hogye
    Thank u hitesh sir

  • @SarveshKumar-08
    @SarveshKumar-08 11 หลายเดือนก่อน +16

    00:05 Learning how to connect a database in MERN
    01:58 Connect database in MERN with debugging
    06:22 To connect to the MongoDB database in the MERN stack with debugging, you need to allow IP address access, have the correct ID password, and the URL.
    08:20 Connect database in MERN with debugging
    12:08 Two approaches to connect database in MERN
    14:24 Mongoose is used to connect to the database
    18:14 Connect database in MERN with debugging
    19:59 Connecting the database in MERN with proper error handling
    23:21 Connect database in MERN with debugging
    25:01 Handle connection errors and exit the process if needed.
    28:27 Connecting database in MERN
    30:34 Set up environment variables in the index file for consistent code
    34:09 Troubleshooting database import issues in the MERN stack
    35:49 Successfully connected the database
    39:07 Learned how to connect database in MERN
    40:54 Connecting a database in MERN with debugging

    • @MohammedHasmi577
      @MohammedHasmi577 11 หลายเดือนก่อน

      Aapki comment hitesh sir ne LinkedIn pr share kiya

  • @abhishekkhatana1256
    @abhishekkhatana1256 ปีที่แล้ว +37

    Ye 6 lakh likes mhuje hi dika rhe hai ya sabko dekh rhe hai 🧐🧐🧐🧐

  • @NikhilThakur-ws2ib
    @NikhilThakur-ws2ib หลายเดือนก่อน

    The way you explain is just another level sir, i watched this video 2times. Now my concepts about database is so clear. So much knowledge in these videos.
    Thank you sir ❤👌

  • @relaxationmusic2013
    @relaxationmusic2013 6 หลายเดือนก่อน

    He is the only teacher jis ka course agar main chalu krta hu toh hamesha pura khatam bhi krta hu! ty sir!😊

  • @ArjunSingh-wo1tg
    @ArjunSingh-wo1tg 6 หลายเดือนก่อน +1

    best part is - "Error ko read krna sbse important hai "(timestamp : 35:20)
    sir ke hrr video me 1 na 1 line to jarur hi milegi jo coding to assan(easy) bnayegi 🙏

  • @kasifmansuri7552
    @kasifmansuri7552 9 หลายเดือนก่อน +1

    Sir you are great....Despite the views count on your series you are still committed to teach with full enthusiasm...Kudos👏👏👏👏

  • @khansaazeem-ht4sy
    @khansaazeem-ht4sy 3 หลายเดือนก่อน

    thanku so much for this backend we also want a full mernstack ...we can learn frontend and backend but we want a proper guideline through you in which you actually teach us the approach so that we can make projects by our own

  • @VikasKumar-bf5wu
    @VikasKumar-bf5wu 2 หลายเดือนก่อน

    Thanks sir aapi video se confidence bahut jyada Aata Hai or aapki video ko digest karne mein time Bhi lag Jaate Hain

  • @unknownmaster6184
    @unknownmaster6184 2 หลายเดือนก่อน

    One imporatant thnk to take away from this video is -
    Read the error, it is important to read the error, inspite of doing just chatGpt or stack-overflow.
    Very motivational for be the engineer.
    one important is just install the mongodb extension in vs code, and while connection in mongodb check for vs code connection option, and ready to boom the mongodb.

  • @Prakash-z8p
    @Prakash-z8p 9 หลายเดือนก่อน +1

    Bhaiya jitna thanku bolu utna kam pdega aapke liye, pata nhi aap itna efforts humare liye kyu laga rhe ho but please kabhi piche mat hatna ,hume aap jaise logo ki bohot jrurat hai ,jjisme koi ghamand aur lalach naa ho , mai try karunga ki mai bhhi aage jaake aapke jaisa banu , logo me knowledge baatu and batau ki maine hitesh bhaiya se sikha hai ye

  • @vanshgrover2432
    @vanshgrover2432 หลายเดือนก่อน

    This course offers top-notch content that even surpasses paid courses out there. thankyou sir for providing this for free to us .

  • @IndiaShortNewsfbd
    @IndiaShortNewsfbd 5 หลายเดือนก่อน

    tankyou sir,sai kah rhe ho aap 2lakhs ka course kiya but smjh yehi se arha h, waiting for your top notch course :)

    • @chaiaurcode
      @chaiaurcode  5 หลายเดือนก่อน +1

      🤗☕️

  • @NoraizAmeen
    @NoraizAmeen 4 หลายเดือนก่อน +1

    Nice Playlist .It is Difficult for me to understand your lecture😁😁 but i know it is beneficial for me .Thanks a lot

  • @_TechInsightHub
    @_TechInsightHub หลายเดือนก่อน

    Idk what is people's problem that thay cant even like this helpful video i really want you to grow even more ❤❤ i cant even watch 5min of video of other youtubers on backend they make me sleep while here i watch hours of bideos and dont even realize just love you and your way of teaching 💗😊😊

  • @namannema3349
    @namannema3349 6 หลายเดือนก่อน +1

    sir watching your video after watching the basic video of piyush garg bhaiya and your video is like the cherry on the top his video has perfect for basics and you video takes that basics in advance

  • @ashfaqkhichi3455
    @ashfaqkhichi3455 4 หลายเดือนก่อน

    Sir thanks a lot . Itna in depth content to udemy py bhi nai milta sir
    thanks for your hard work for us yeh cheezain hmain compnay main seekhtay seekhtay 3 sy 4 months lag jaty but apki yeh series too best hain ab aik beginner level ka developer bhi Well structured and fully optimized web app bnany k qabil hoo jaye ga yeh series dekh k.....
    Again a Large Bundle of thanks for your efforts

  • @shashiKPD
    @shashiKPD 3 หลายเดือนก่อน

    love your dedication to re record the whole video to maintain the quality that we've come to know and love.

  • @itsayush7195
    @itsayush7195 8 หลายเดือนก่อน

    Sir, your way of teaching and knowledge is totally different from every teacher on TH-cam

  • @HimanshuPrajapati-p4h
    @HimanshuPrajapati-p4h 8 หลายเดือนก่อน

    This level of deep knowledge you got from doing work for so many years and now you giving it to community for free of cost to do this type of efforts are not that easy it is difficult for you also but although you are giving too much to the community and as you said in the podcast with Ranveer you will definitely bring new revolution in the tech community I believe in you sir keep going whole community is with you. Thank you too give this production grade level knowledge that no one talk in current market. You are great lots of love from Mehsana, Gujarat❤🙌☺.

  • @SNEHASINGH-fr4vo
    @SNEHASINGH-fr4vo 7 หลายเดือนก่อน +1

    Just another great explanation on this series 🤩

  • @Swarn-eb9ok
    @Swarn-eb9ok 17 วันที่ผ่านมา +1

    sir your dedicating toward delivering quality content is unmatchable.thanks a lot

  • @S.K.IntelliCy
    @S.K.IntelliCy หลายเดือนก่อน +1

    the content 🦾 , the educator 🦾, kahin esa content nahi milega jesa yahan hen

  • @atanumalik5338
    @atanumalik5338 5 หลายเดือนก่อน

    This is the best Backend series on youtube!!

  • @developer_dhanji
    @developer_dhanji 6 หลายเดือนก่อน +1

    part time me reels nahi comment scroll karne ka sokh hai 🤣🤣 to beshak hame bhi aise parttime work dene me maja ata hai karte rahiye comment ko scroll ,
    and thanks for this valuable content , ab kya hi bole jata jate amzing bol deta hu ❤❤

  • @amanbadhan7546
    @amanbadhan7546 8 หลายเดือนก่อน

    Best explanation of every topic. Thank you sir. And one more thing 'Database is always in another continent' ...

  • @aayushjha3623
    @aayushjha3623 2 หลายเดือนก่อน

    Amazing video. Explanation on how to handle error in DB connection was well explained. Thanks for the insights and sharing experience.

  • @harshkanani9831
    @harshkanani9831 7 หลายเดือนก่อน

    Best video for backend on youtube

  • @FizaShakil-c4k
    @FizaShakil-c4k หลายเดือนก่อน

    You're the teacher who deserves millions of views and likes!♥️

  • @sumanjeet2300
    @sumanjeet2300 9 หลายเดือนก่อน

    Database is in another continent, but Hitesh sir is in our continent.
    Thank you so much for this wonderful course ♥

  • @gamingmode2868
    @gamingmode2868 หลายเดือนก่อน

    La jawab series for backend development. Love you sir ji

  • @aneerzaman5366
    @aneerzaman5366 9 หลายเดือนก่อน

    Your teaching way is simple and advance. Hope You reach at your desire place

  • @surajgoraicse
    @surajgoraicse 5 วันที่ผ่านมา +1

    Radhe Radhe... Watching this lecture on 25 - 10 - 24.

  • @prajwalm.s7976
    @prajwalm.s7976 10 หลายเดือนก่อน +1

    We all are very lucky to learn from you Sir

  • @akshayjain2777
    @akshayjain2777 9 หลายเดือนก่อน

    sir jiiii apse padhne ke baad tho experience job role pe bi apply kia jaa skta . soo deep content of such highlevel knowledge just free ! op hitesh sir

  • @kazitanim007
    @kazitanim007 7 หลายเดือนก่อน

    Great tutorial, after starting this backend tutorial i don't like frontend any more. Keep up the good work.

  • @Khushi_Chauhan759
    @Khushi_Chauhan759 หลายเดือนก่อน

    thankyou so much sir for guiding us on this journey and making backend development so clear🙏🙌

  • @himadriroy7980
    @himadriroy7980 2 หลายเดือนก่อน

    It's always a pleasure learning from you sir. The way you teach is just pure talent. Love you sir. ❣❣

  • @ArshanAli-u3h
    @ArshanAli-u3h 9 หลายเดือนก่อน

    your Commitment towards Your Videos , just amazing
    great content

  • @RohitSahu-em5il
    @RohitSahu-em5il 10 หลายเดือนก่อน +1

    Recognizing Hitesh Sir's role in #chaiaurcode #backenddevelopment is commendable. Being grateful to teachers like him who shape our learning journeys is valuable

  • @K_EE_Koshal
    @K_EE_Koshal 10 หลายเดือนก่อน +1

    It's wonderful that you recognize and appreciate Hitesh Sir's contributions to #chaiaurcode #backenddevelopment. Expressing gratitude to those who have positively impacted our lives is always a meaningful gesture.

  • @AllInOne-vz3cm
    @AllInOne-vz3cm 4 หลายเดือนก่อน

    just 2 words , BEST SERIES , SIR

  • @yamsheeajaz5624
    @yamsheeajaz5624 8 หลายเดือนก่อน

    The explanation was the best. It was now so easy for me to connect the db

  • @Life-yi7uf
    @Life-yi7uf 3 วันที่ผ่านมา +1

    You might find my comment funny but I didn't understand anything in this video yet I watched it till the end.😅 I'm going to start a new role as an associate functional consultant and I thought this would be something related to SQL and it's backend communication so I started watching it..😅

  • @SarwanKumar-dz2hh
    @SarwanKumar-dz2hh 10 หลายเดือนก่อน

    It's wonderful that you recognize and appreciate Hitesh Sir's contributions to #chaiaurcode #backenddevelopment.

  • @bhuvansingh4375
    @bhuvansingh4375 7 หลายเดือนก่อน

    Sir aapke experiences sun na or aapki harr ek topic ko in depth mein samzhana personally I love it👌

  • @01souravkumar
    @01souravkumar 6 หลายเดือนก่อน +2

    as described in video for setup of dotenv config is not working in node 20+ versions so, --> we can simply include - import {} from 'dotenv/config' at the top of the src/index.js file and by this we can avoid the require experimental module configuration inside the package manager.
    This works because of how ES6 modules imports modules. Before doing anything else in a file (say index.js) it does all the imports first. It does a depth first traversal of these imports, executing any code inside it. If we import dotenv first, it will execute config and add any env variables before doing anything else in the code.

  • @gamingchannelX9
    @gamingchannelX9 4 หลายเดือนก่อน

    00:40 salute to you for making videos again for us 🙌🏻

  • @utkarshkrishna.youtube
    @utkarshkrishna.youtube 10 หลายเดือนก่อน

    Finished this lecture on the last day of '23 and I can happily say that ki mera MongoDB ka darr almost khatam ho gaya..!
    Really grateful for this series...🤍
    Thank You so much Hitesh Sir and a very Happy New Year...💫

  • @Harsh_ptct
    @Harsh_ptct 10 หลายเดือนก่อน +1

    Congrats fir for 151k✨

  • @Munazzam-q4d
    @Munazzam-q4d 10 หลายเดือนก่อน +1

    Itna acha detail me to aap hi padhate ho, dusre YT channel wale to Mongooes padhna shuru hi mongooes.connect se karte hai......Hats off and much appreciate your effort.

    • @chaiaurcode
      @chaiaurcode  10 หลายเดือนก่อน +2

      Thanks a ton 😊☕️

  • @Shafique5930
    @Shafique5930 4 หลายเดือนก่อน

    Most professional way of teaching, love and support hitesh sir for giving us free knowledge and technology experience

  • @comedyshorts4938
    @comedyshorts4938 10 หลายเดือนก่อน +1

    thanku bhai aapne double mehnt krne ke liya 😅😅💞💞

  • @Waleedkhan-zh8hm
    @Waleedkhan-zh8hm 29 วันที่ผ่านมา

    Bahut Acche Sir G Best of the Best

  • @utkarshkrishna.youtube
    @utkarshkrishna.youtube 10 หลายเดือนก่อน

    Day 4 of Learning Backend with Hitesh Sir... So far bohot mazzaa aaya....😁

  • @zzz7388
    @zzz7388 10 วันที่ผ่านมา

    full support sir, bas video banate rahiye

  • @ramannagwan8812
    @ramannagwan8812 9 หลายเดือนก่อน +1

    01:58 Connect database in MERN with debugging
    06:22 To connect to the MongoDB database in the MERN stack with debugging, you need to allow IP address access, have the correct ID password, and the URL.
    08:20 Connect database in MERN with debugging
    12:08 Two approaches to connect database in MERN
    14:24 Mongoose is used to connect to the database
    18:14 Connect database in MERN with debugging
    19:59 Connecting the database in MERN with proper error handling
    23:21 Connect database in MERN with debugging
    25:01 Handle connection errors and exit the process if needed.
    28:27 Connecting database in MERN
    30:34 Set up environment variables in the index file for consistent code
    34:09 Troubleshooting database import issues in the MERN stack
    35:49 Successfully connected the database
    39:07 Learned how to connect database in MERN
    40:54 Connecting a database in MERN with debugging

  • @decent719
    @decent719 3 หลายเดือนก่อน

    Best teacher on the internet.

  • @SayounGaming
    @SayounGaming 9 หลายเดือนก่อน

    Sir ji jub se aapko jaanta hu tub se best teacher ho aap ✨

  • @shekhar_ranjan
    @shekhar_ranjan 8 หลายเดือนก่อน

    Bahut acha video on database connection with added advantages, Sir ❤

  • @RRajput-a18r
    @RRajput-a18r 5 หลายเดือนก่อน

    Thanks for this Playlist. Best on TH-cam for Backend

  • @aniksaha8108
    @aniksaha8108 7 หลายเดือนก่อน

    Thank you so much sir for this amazing playlist, I was feared of mongodb connection but you made modeling easy now also you made connection very easy, I can connect anytime now in this way, Thank you so much! Hope one day I could be a great developer like you

  • @vishalratnakar592
    @vishalratnakar592 10 หลายเดือนก่อน

    In the garden of education, you are the rare and precious bloom that makes it a place of beauty and growth. Thank you for cultivating a love for learning in all of us🥰

  • @comedyshorts4938
    @comedyshorts4938 10 หลายเดือนก่อน +1

    congratulations bhaiya 100k to 150k ho gye 🎉🎉

  • @ofcljaved
    @ofcljaved 10 หลายเดือนก่อน

    Very grateful of your supports and how much learning you gave to us❤❤

  • @ajitgurav5898
    @ajitgurav5898 2 หลายเดือนก่อน

    Chai aur code is India's number one TH-cam channel ❤❤

  • @tanishkagupta3479
    @tanishkagupta3479 6 หลายเดือนก่อน

    Aap bhut mehnat karte hai sir. Thank you so so much

  • @Anime_Odyssey1112
    @Anime_Odyssey1112 2 หลายเดือนก่อน

    This free course is better than many premium courses

  • @yogeshbhatta7997
    @yogeshbhatta7997 10 หลายเดือนก่อน

    Greatest video series for backend ever

  • @dhrubaduttabanik5895
    @dhrubaduttabanik5895 10 หลายเดือนก่อน

    One of the best backend courses ever ❤

  • @its_Amit_00
    @its_Amit_00 23 วันที่ผ่านมา +1

    sure sir , full support from this side ...

  • @crazyyt9045
    @crazyyt9045 10 หลายเดือนก่อน

    Sir your teaching style is amazing

  • @sudiptamukherjee8216
    @sudiptamukherjee8216 6 หลายเดือนก่อน +1

    Database is present in another continent that's why it takes time 💯💯♥️♥️

  • @hingchongrongphar3385
    @hingchongrongphar3385 8 หลายเดือนก่อน

    Lots of support from Assam

  • @sporshosporsho2630
    @sporshosporsho2630 7 หลายเดือนก่อน

    you deserve a comment thank you sir for this awesome tuitorial

  • @Prakash-z8p
    @Prakash-z8p 9 หลายเดือนก่อน +1

    Getting ready to be a backend master

  • @yash-c7l5b
    @yash-c7l5b หลายเดือนก่อน

    thank you so much for releasing this series

  • @shivkojha
    @shivkojha 7 หลายเดือนก่อน

    Learning From this series with 100% focus and dedication. completed at 9/March/2024 1:44pm