How to install mongodb in phone - store data on mongodb atlas cloud from your android or ios

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 2024
  • In this video a showed how to use mongodb atlas from a mobile .
    First you need to create a account on mongodb using your email , Create a free cluster inside that define database and collection name .
    Now copy the connection string and connect to mongodb remotely .
    Time stamps :-
    00:40 creating account on mongodb
    01:00 verify on Gmail
    01:27 welcome to atlas
    03:42 copying connection string
    04:30 connect to atlas using mongoose
    06:17 running js(mongoose) file in termux
    07:13 successful inserted user's data
    If you have any questions on it just leave it in comment box .
    I'm here .😃
    Mongoose code in comment box ⬇️
    Tags:-
    How to install mongodb in phone,how to store data in mongodb from phone,how to use mongodb atlas from phone,how to connect mongoose to mongodb data base,how to insert data from mongoose to mongodb,Database,back,end,backend,mongo,mongodb,mongod,mongoose,mongodbatlas,atlas,JavaScript,acode,editor,node,express,web,development,phone

ความคิดเห็น • 7

  • @wisdomsamuel-pe2fm
    @wisdomsamuel-pe2fm ปีที่แล้ว +2

    You made my day...
    I also best enjoy 😄 code with phone than laptop

  • @wisdomsamuel-pe2fm
    @wisdomsamuel-pe2fm ปีที่แล้ว +2

    Thanks alot .... really working well.. This has helped me alot..
    I do all of my code project with my Android

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

      Happy to hear that man .
      If you want to know more about it, let me know I am always here .

  • @learningtocode5049
    @learningtocode5049  2 ปีที่แล้ว

    Mongoose code :-
    let mongoose = require('mongoose')
    // connecting to mongodb atlas
    mongoose.connect('mongodb+srv://:@cluster0.yoly7.mongodb.net/?retryWrites=true&w=majority')
    // mongoose schema
    let schema = new mongoose.Schema({
    name : String ,
    age : Number
    })
    // mongoose model
    let model = new mongoose.model('user',schema)
    let newUser = new model({
    name :'bean',
    age : 99
    })
    // inserting the data
    model.insertMany([newUser])

  • @kazisamir123
    @kazisamir123 2 ปีที่แล้ว

    👌