Rest API #5: Introduction to MongoDB & Mongoose || Connect Backend to Database 💻

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

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

  • @web-dev.ashishk
    @web-dev.ashishk 7 месяцев назад +1

    your content is top notch in hindi Love you sir from UP 💌

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

    Hogya bhaiya I m happieee connected each and every servers

  • @royaljkboss1185
    @royaljkboss1185 Год назад +3

    3 youtuber ki video dek chukaa hu lekin ye moongoes mere mongo se abhi tak connect nahi huaa 😔 ye duniya koi help nahi karta god ko chod ke mere jo dost website benate vo bhi meri help nahi karte but koi problem meri hai to soulution bhi me hi keruga niche vali duniya sath de to kya huaa vo begwan to mere sath hai me aage bedta rehuga
    hare krishna

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

    This is very very very very very interesting series.thanks thapa........

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

    Hi Thapa aaj phirse mai👊🏻😂

  • @abdur786_
    @abdur786_ Год назад +3

    It's going to very interesting series....thank you thapa bhaiya...♥️

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

    While connecting database you didn't handle the error. If there is any mistake how do you know that ?

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

    Thank you so much sir

  • @AllInOne-vz3cm
    @AllInOne-vz3cm Месяц назад

    great video

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

    Are u including microservices,AWS ,docker, kubernate in this series.

  • @bollywoodmusic125-i3t
    @bollywoodmusic125-i3t Год назад

    Jorda bhai = video ma khabar padi
    Nodejs = playlist ma samjayou pane khabar mate pade

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

    Thankyou sir for this

  • @user-ch3kf1yv1j
    @user-ch3kf1yv1j Год назад

    g bhai hogaya connect thanks from pakistan

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

    Bro you are just awesome 👌

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

    I'm confused which backend should I do ?

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

    Please share how u customized your terminal and upload next video we are waiting ♥️

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

    Sir my question.Register fome to user and send data using two database used condition is normal data save mongoose and image or video AWS S3 bucket
    Sir please help me

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

    Connected to DB, but deprecation warning aa rha hai

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

    Hello Thapa sir can you tell me how to connect our database using ms sql server when i connect some issue facing like connect refuse and ssl please tell me how can be solve and tell me with how to connect mysql database

  • @user-es1zq3su3f
    @user-es1zq3su3f 10 месяцев назад

    it's not connecting please tell me why is it not connecting
    Node.js v18.16.0
    [nodemon] app crashed - waiting for file changes before starting...

  • @ashish421990
    @ashish421990 17 дней назад

    forget to keep database name & password , how to get now ?...Please help

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

    Thapa come to Nepal. You are nepali blood. speak Nepali then only i suscribe you!!

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

    excellent video

  • @k.ashutoshbaitharu3964
    @k.ashutoshbaitharu3964 Год назад

    Thank you so much!

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

    Please sir testbook ka quiz app banake batao using html, css, js, bootstrap

  • @Vick-developer
    @Vick-developer Год назад

    I am facing some problems when I make connection with the mongo cluster

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

    Awesome 😎

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

    facing problem in creating database in compass using node in vs code

  • @mehandilone9533
    @mehandilone9533 Месяц назад

    Day 5 completed

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

    Bhai ye cutles q use kar rha he confuse hogya

  • @AniketChougule-th5tx
    @AniketChougule-th5tx Год назад

    Bhai, abhi nodejs with mysql ki bhi playlist bana do

  • @rashidtech12.0
    @rashidtech12.0 Год назад

    bro make a vedio on admin panel of express js

  • @user-ox6lg1vi9n
    @user-ox6lg1vi9n 5 месяцев назад

    Where is the source code link?

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

    MongoParseError: mongodb+srv URI cannot have port number yah error kyo mill raha hai

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

    Sir kindly tell us about images uploading on data base or how to make image ulr so that we can put that link into API

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

      send me email id bro. i will send you goggle meet link for help

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

    Hello thapa bhai

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

    Konsi theme use karte ho 🙏🙏

  • @VishalVishal-lr9ii
    @VishalVishal-lr9ii 8 месяцев назад

    no source code available for the REST API

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

    show error when i run the code
    [nodemon] app crashed - waiting for file changes before starting...

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

      I'm facing same error

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

    6th video Q hide kiye huye hai sir
    Usko v public kijiye

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

    below is more simple way to connect server with db. You only need to add two lines of codes and add one file name .env and paste your string into it.
    const dotenv = require("dotenv").config()
    const express = require("express");
    const app = express();
    const mongoose = require("mongoose");
    const PORT = process.env.PORT || 5000
    app.get('/', (req, res) => {
    res.send('hello world')
    });
    mongoose
    .connect(process.env.MONGO_URI)
    .then(() => {
    app.listen(PORT, (() => {
    console.log(`server running on port ${PORT}`);
    }))
    })
    .catch((error) => console.log(error));

  • @ashishkumar-pm9tr
    @ashishkumar-pm9tr 7 месяцев назад

    typeerror: mongoose.connect is not a function

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

    Kindly explain how to connect two mongodb schemas with post route?

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

      send me your email. i will send you google meet link . i can solve your problem

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

    bestt best best

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

    apko database ka nam kaha se mila?

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

    Thapa Sir You have already made backend course then why you again make videos of backend

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

      This time he is creating Backend with realTimeProject

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

      @@hamzaCodex which project

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

    theme name?

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

    Authentication failed

  • @QasimAli-cc7rq
    @QasimAli-cc7rq Год назад

    //solution of issue while connecting to MongoDB
    I just had this problem knowing that I was using the correct username, password, and DBname.
    I tried to change the password for the db user to double-check, but it still didn't work.
    Instead, I created a new user, gave the user admin role, set the password, etc, and then used that new user and password (same dbname) for the connection, which worked.
    I don't know exactly what the issue was, but hoping it can help some of you save some time :)
    #copied

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

      bro can you help me out I'm getting same error it's not resolving.

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

    Require function error

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

    Source code link please

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

    how solve it
    MongoAPIError: URI must include hostname, domain name, and tld
    at resolveSRVRecord (D:\intern\RVAPI
    ode_modules\mongodb\lib\connection_string.js:37:15)
    at MongoClient._connect (D:\intern\RVAPI
    ode_modules\mongodb\lib\mongo_client.js:140:74)
    at MongoClient.connect (D:\intern\RVAPI
    ode_modules\mongodb\lib\mongo_client.js:119:40)
    at _createMongoClient (D:\intern\RVAPI
    ode_modules\mongoose\lib\connection.js:895:16)
    at NativeConnection.openUri (D:\intern\RVAPI
    ode_modules\mongoose\lib\connection.js:742:29)
    at Mongoose.connect (D:\intern\RVAPI
    ode_modules\mongoose\lib\index.js:406:15)
    at connectDB (D:\intern\RVAPI\db\connect.js:10:30)
    at start (D:\intern\RVAPI\app.js:21:15)
    at Object. (D:\intern\RVAPI\app.js:31:5)
    at Module._compile (node:internal/modules/cjs/loader:1149:14) {
    [Symbol(errorLabels)]: Set(0) {}

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

      //when it is on it give me a error
      // await connectDB();
      app.listen(PORT, () => {
      console.log(`${PORT} Yes, I am Connected`);
      });
      } catch (error) {
      console.log(error);
      }
      };
      start();

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

      mera await connectDB ko commentout karne se error solve ho ja raha hai

    • @some.generic.username5254
      @some.generic.username5254 6 месяцев назад

      @@itsmemebro but usse error fix hota hai , issue solve nahi hota,tujhe kabhi to connect karna hi hai to await ko comment karke nahi chalega

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

    🙌🚀❤

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

    Sir apne apne html form wale video me mongodb se connection to kiya hi nhi hai to usme data insert kaise ho raha hai.
    ruclips.net/video/XZiFBlfluZk/видео.html
    Is wale video me.

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

    🙏💯💯

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

    Node.js v18.17.1
    [nodemon] app crashed - waiting for file changes before starting...
    mera to ye error resolve nahi ho raha . bekar hai kisi aur ki dekho bhai

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

      // Option 1: Move definition to the top
      const express = require('express');
      const app = express();
      // Other imports (if any)
      // Define products_routes here (before app.use)
      const products_routes = require('./products_routes'); // Assuming products_routes is in a separate file
      app.use('/products', products_routes);
      // Other app configuration code
      app.listen(3000, () => {
      console.log('Server listening on port 3000');
      });
      use link this u have done some mistake i thing

  • @9876rabi123456789
    @9876rabi123456789 Год назад

    First

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

    1st

  • @AnilKumar-mu3eq
    @AnilKumar-mu3eq Год назад +2

    How to Remove this waring from Terminal Please ->
    (node:19516) [MONGOOSE] DeprecationWarning: Mongoose: the `strictQuery` option will be switched back to `false` by default in Mongoose 7. Use `mongoose.set('strictQuery', false);` if you want to prepare for this change. Or use `mongoose.set('strictQuery', true);` to suppress this warning.
    (Use `node --trace-deprecation ...` to show where the warning was created)

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

      In connection.js file.....write this line... mongoose.set('strictQuery ', true)

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

      @@abdur786_ bhai source code ? kha milega

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

    What's ur explanation yr
    nothing to understanding 😂
    @Codewithharry is best

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

    Getting below error when try to connect " const connectDB = require("./db/connect")"
    C:\myapp\demoapi
    ode_modules\mongodb\lib\operations\add_user.js:16
    this.options = options ?? {};
    ^
    SyntaxError: Unexpected token '?'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object. (C:\myapp\demoapi
    ode_modules\mongodb\lib\admin.js:4:20)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    [nodemon] app crashed - waiting for file changes before starting...