Get Data From MongoDB Atlas to HTML using EJS

Поділитися
Вставка
  • Опубліковано 22 гру 2020
  • Merry Christmas my internet friends! :)
    In this tutorial we are going to learn about EJS and how we can use it to get the data from MongoDB Atlas to HTML table.
    Here is the link to my git repo:
    github.com/marinamuse/mongo-h...
    For more, please:
    Follow me on instagram: / marina_webdev
    Visit my website which is under continuous improvement: musedesigns.tech/hi-im-marina
    Shop for my programmers merch designs: teespring.com/stores/techmuse
    Equipment used:
    - MacBook Pro 2019 (amzn.to/31keIsC)
    - iPhone 6s Plus (amzn.to/2FJdy1k)
    - Phone holder with lamp (bit.ly/2Eju08g)
    - Keepword Blogger microphone (bit.ly/3aP3mQB)
    Software used:
    - Viddyoze video making software (bit.ly/3l6wwPT)
    - iMovie (video editing)
    - Canva (UA-cam thumbnail)
    - CloudApp (video recording)
    Background music/Copyright: Wet Wet Wet - Love is All Around
    See you in the next video!
  • Наука та технологія

КОМЕНТАРІ • 161

  • @xardass4209
    @xardass4209 3 роки тому +4

    Merry Christmas Marina🍀🌠🙏☃️.

  • @diwakarkirar5102
    @diwakarkirar5102 Рік тому +2

    It's my first time on her channel and seriously the whole tutorial was so simple ,thanks for all your efforts😇😇

  • @SpookyAmbassador
    @SpookyAmbassador 2 роки тому +1

    Aww thats the cutest and most productive tutorial that i have seen recently😊

  • @jyrilindroos6631
    @jyrilindroos6631 4 місяці тому +1

    Thanks, Marina. Just what I needed!

  • @disgocases3114
    @disgocases3114 2 роки тому

    This video was amazing, thank you for this Marina!

  • @monat_son
    @monat_son Рік тому

    Marina, thank you for these excelent tutorials!!

  • @GoldyAwad
    @GoldyAwad Рік тому

    Thank you so much, the easiest explanation for ejs out there!

  • @jacobloat8204
    @jacobloat8204 2 роки тому +1

    Great tutorial! Appreciate how simple and accessible you make difficult topics.

  • @hemantverma3685
    @hemantverma3685 2 роки тому

    Thankyou so much ma'am. Almost for one month I was stuck in this part while doing my project. You just saved me for wasting another week for this. Best explanation on how to get data from mongodb.

    • @marinakim2929
      @marinakim2929  2 роки тому +1

      Omg thank you so much for the feedback)

  • @chizaramireh7537
    @chizaramireh7537 2 роки тому +1

    This is literally the best video that explains a lot as regards ejs and mongodb, thanks a lot.

  • @reshulw884
    @reshulw884 2 роки тому +1

    Really Helpful Thank You!!! Marina 🥂

  • @sunnatganiev7335
    @sunnatganiev7335 3 роки тому

    Thank you so much Marina! You saved my life...!!! 🥳🥳🥳

  • @lukslt
    @lukslt Рік тому

    OMG YOU SAVED MY LIFE THANK YOU

  • @bharathk8841
    @bharathk8841 Рік тому

    Thanks for your work❤

  • @rafaelteixeira2562
    @rafaelteixeira2562 2 роки тому

    Thanks, this tutorial helped me a lot!

  • @tahaben3354
    @tahaben3354 2 роки тому

    thank u so much marina

  • @jaideepbanerjee616
    @jaideepbanerjee616 2 роки тому

    :-) looking for this.. quite extensive for a new learner but very well explained. Thank you

  • @SICSASHISHANAND
    @SICSASHISHANAND 3 роки тому

    Thank you your tutorial is really helpful.

  • @user-yi6no6ov1p
    @user-yi6no6ov1p 3 роки тому

    Thank you so much! 🙏 That's great!

  • @nurulabrar3561
    @nurulabrar3561 2 роки тому

    Thanks, that what I was looking for

  • @vrajpatel1877
    @vrajpatel1877 2 роки тому

    Thank You very Very Much Marina 🙏🙏🙏🤗

  • @mertkandemir770
    @mertkandemir770 2 роки тому

    Thanks a lot, great explanation

  • @NiquestForever
    @NiquestForever 3 роки тому

    Thanks for the video!

  • @spaceenthusiast5696
    @spaceenthusiast5696 3 роки тому +3

    You are great! KEEP GOING THIS STUFF!

  • @TheArphan
    @TheArphan 3 роки тому +5

    Thank you, I was looking for 2 weeks, how to do that and now I'm able to continue my website!

  • @xpresscodespot6555
    @xpresscodespot6555 Рік тому

    Great Job. Thanks!!!!!!!!!

  • @aah4127
    @aah4127 2 роки тому

    Im from Argentina, and i dont know much English, but i understand you, thats amaezing, and thank you!

  • @ahmetucar2970
    @ahmetucar2970 2 роки тому

    Thank youuuuuuu. You are awesome..

  • @ntigirishari
    @ntigirishari 3 роки тому +1

    Thank you!!

  • @raulrammouz1686
    @raulrammouz1686 6 місяців тому

    Amazing thank you alot

  • @emashno5
    @emashno5 8 місяців тому +2

    update on syntax in your server file :
    Movie.find().then((movies) => {
    res.render("index", {
    moviesList: movies
    });
    ............... Reason being that mongo is no longer supporting callbacks but is instead using an async method hope this helps someone out there.

  • @prasadmagi6302
    @prasadmagi6302 Рік тому

    thank you so much for this video ❤❤❤❤❤❤❤❤❤❤❤❤

  • @rafaelac.1643
    @rafaelac.1643 2 роки тому

    Thank you so much

  • @ashishmishra9915
    @ashishmishra9915 3 роки тому

    Thanks Marina

  • @ganeshponmalar..3168
    @ganeshponmalar..3168 Рік тому

    Thanks 🦋

  • @Pareshbpatel
    @Pareshbpatel 10 місяців тому

    Nice Tutorial on Ecpress, EJS and MongoDB with Mongoose. Very easy to follow. Thanks, Marina.
    {2023-08-20}

  • @Dyn0Official
    @Dyn0Official 2 роки тому

    This is really useful for my di.scord bot!

  • @sheshasaibabagujjari3481
    @sheshasaibabagujjari3481 3 роки тому

    This must be the only Tutorial where I laugh while learning. Thanks.

    • @marinakim2929
      @marinakim2929  2 роки тому

      😂😂thanks to you too and sorry for such late reply

  • @bhargavsolanki6386
    @bhargavsolanki6386 3 роки тому

    Thanks , love from India😍

  • @hidayet.hidayetov
    @hidayet.hidayetov 3 роки тому +1

    thank u so much :)

  • @lellajagadeeswar596
    @lellajagadeeswar596 2 роки тому

    thank you very much

  • @ArisAris-fs1ip
    @ArisAris-fs1ip 2 роки тому +1

    It is a first time I watch a girl tutorial for coding.... And I understood at last how to pass mongo db data to html!!! Thank you!

  • @davidlazaro3143
    @davidlazaro3143 3 роки тому +1

    Great video it helped me a lot =) Thx!

  • @meetkachhadiya5826
    @meetkachhadiya5826 2 роки тому

    thank you,i want more videos

  • @arjunsinghrajput412
    @arjunsinghrajput412 Рік тому

    Thank you

  • @asibulislamabir9224
    @asibulislamabir9224 3 роки тому

    Tysm....I was stuck for this issue for the last 1 week....& I was trying to do it using 'axios' bt couldn't load my data in my ejs file....it was really helpful....thnq once again 💓❤️❤️

  • @n1ght_m1racle
    @n1ght_m1racle 3 роки тому

    Спасибо, очень помогли)

  • @surpura00
    @surpura00 6 місяців тому

    Love from India ❤❤❤

  • @sabbu3791
    @sabbu3791 3 роки тому

    Thank you so much for the tutorial! Soo helpful❤ can u also do a tutorial on how you can update the values in frontend, so that it reflects in the database.

    • @marinakim2929
      @marinakim2929  3 роки тому

      Hi) thank you!! I have couple of tutorials on this where you post data from html to mongodb and from react front end to mongodb ☺️

    • @marinakim2929
      @marinakim2929  3 роки тому +1

      Ah you mean update not create?) ok understood, will do!

  • @nguyentruongthuong2402
    @nguyentruongthuong2402 2 роки тому

    I love you so much !!!

  • @parulsingh9895
    @parulsingh9895 3 роки тому

    Kuddos, again helped me

  • @visveshkhanna
    @visveshkhanna Рік тому

    Well, if we add some stuff in the db, will it get updated realtime?

  • @xcellentmotionz
    @xcellentmotionz Рік тому

    How do i create a slideshow to display an array one after another from mongo db in my HTML?? Help

  • @iGmng
    @iGmng Рік тому

    Hello marina,
    Thank you and very helpful. But I ask permission to ask, I have done all the steps in your video, but when I try console.log(data.find()) it doesn't work, only 0 collection signal, how to solve it?

  • @patshalaaa
    @patshalaaa 3 роки тому

    wao ammazing !

  • @editingtuto1.011
    @editingtuto1.011 Рік тому

    how Can I retrieve data of multiple collection from same Databse in one ejs templet?

  • @deeprakholiya7583
    @deeprakholiya7583 2 роки тому

    in ejs forEach() function ,it shows error that movieList not defined.

  • @Fheara_Nyakki
    @Fheara_Nyakki Рік тому

    It's working and all ty (tho I made the schema code as a separate module) but is there a better way to do all this without need 4356436523 modules like express/ejs? I don't like to have a html file and a ejs file, whats the point of the html file if everything need to be done in the ejs mmh... Geez sometimes I think programming javascript is less messy than call a single variable from external file in html where need 20 bilions of files.

  • @digenmore5949
    @digenmore5949 Рік тому +1

    How to send data of ejs file to database?

  • @juguetestoys1137
    @juguetestoys1137 2 роки тому

    Hi Marina!
    Great video as always.
    Do you know how to add a filter or a search in this app?

  • @tankionlinegamer126
    @tankionlinegamer126 Рік тому +1

    please make 1 auto data filling like technician service report form in html css js using mongodb data base with download option

  • @kalyanking1080
    @kalyanking1080 3 роки тому

    Keep growing you're going to make 1 lack subscriber soon

    • @marinakim2929
      @marinakim2929  3 роки тому

      Thanks and sorry I didn’t get your comment 😁

    • @kalyanking1080
      @kalyanking1080 3 роки тому

      @@marinakim2929 your videos are good far better than channel having 100k+ subscriber , that's what I am saying this channel is going to gain too much subscriber

    • @marinakim2929
      @marinakim2929  3 роки тому

      @@kalyanking1080 ooooh thanks so much))) yes I will definitely continue and also improve.. buy a good camera, mic, learn new tricks in MERN 😋😋

  • @Osuran_Bogaa
    @Osuran_Bogaa 2 роки тому

    Hello, i need help for my question.
    I want push data to array from promise (.then()) but i cant doing that
    Example:
    ""
    let newArray = [ ];
    let mailForFindOne = req.session.mail;
    let numbers= [ ];
    User.findOne({mailForFindOne})
    .then((response) => {
    console.log(response); // result: [1,2,3,4,5,6]
    numbers.push(response);
    })
    console.log(numbers) // result: [ ]
    ""
    Shouldn't "numbers" be "[1,2,3,4,5,6]"?
    why "numbers" doesnt have "[1,2,3,4,5,6]" ?
    help me please :(

  • @oahola237
    @oahola237 3 роки тому

    Am I the only one that wants my keyboard to sound like this?
    Edit: This is really an excellent learning experience because you talk through the process naturally as you are doing it. I am just wondering what is the reason you needed to add "err"?

    • @marinakim2929
      @marinakim2929  2 роки тому

      😂I also enjoy the keyboard sounds though some people complain.. About err I guess it was required as an argument and without it it wouldn’t recognize the other argument, but I have to rewatch the tutorial to remember better)

  • @hehexd7775
    @hehexd7775 3 роки тому +1

    Hey Marina thank you so much for this tutorial. I am getting 1 error however, "throw er, unhandled error event" not sure how to solve this do you know how? Tysm

    • @hehexd7775
      @hehexd7775 3 роки тому +1

      actually i figured it out, your tutorial is amazing thanks!

    • @marinakim2929
      @marinakim2929  3 роки тому

      @@hehexd7775 hey) sorry for such late reply these past two months were craaazy)) I’m happy you solved it, I guess when you do a promise you need to catch an err, I just avoid it for simplicity)

  • @oliverreviews8496
    @oliverreviews8496 3 роки тому

    Марина, добрый день, было бы круто если бы вы смогли освятить больше тему полнотекстового поиска, что это и как реализуется посредством движков в mongodb!

    • @marinakim2929
      @marinakim2929  3 роки тому

      Отличная идея, спасибо) займусь

  • @ram.5802
    @ram.5802 3 роки тому

    u r dope!!!

  • @maximivanchenkov3698
    @maximivanchenkov3698 3 роки тому

    И да, merry Christmas!!!

  • @MrGupzzzz
    @MrGupzzzz 3 роки тому +1

    Hi you video was very helpful but I am getting error 'forEach' as undefined, any recommendations do you give.

    • @marinakim2929
      @marinakim2929  3 роки тому

      Hi) thank you!! It looks like you’re not passing the values to the EJS variable. It’d help me to look through your code)

    • @MrGupzzzz
      @MrGupzzzz 3 роки тому

      @@marinakim2929 how to show you code?

  • @user-lk9co1dz7h
    @user-lk9co1dz7h Рік тому

    Не могли бы вы снять видео как отправлять дата в монго из формы,

  • @maximivanchenkov3698
    @maximivanchenkov3698 3 роки тому

    Мне кажется, когда ты говоришь про another tutorial надо ссылку сверху добавлять или сбоку, ну в общем как это бывает у всяких блоггеров. Я правда не знаю как это делается, но думаю не сложно )))))
    Просто так ваще классно будет. Типа ты пальчиком вверх в правый угол показываешь и там появляется совет "перейти сюда"
    А так, как всегда классное видео!

    • @marinakim2929
      @marinakim2929  3 роки тому

      Блин, точно) спасибо, попробую сегодня

  • @BigTime929
    @BigTime929 3 роки тому +1

    is it possible to create a project using mongodb as caching database, while mysql as the real database?

    • @marinakim2929
      @marinakim2929  3 роки тому +1

      That’s a interesting question, let me research that

  • @TC-gv9fs
    @TC-gv9fs 3 роки тому +1

    Can you do an app with front end react and backend mongoDb and connect them with authentication user please

  • @xcellentmotionz
    @xcellentmotionz 2 роки тому +1

    Hello Marina, i have another question, if you can point me to a different resources if you don't have the tutorial.
    here's the question/ problem.
    How do i perform a crud operation on the EJS page where my collections are displayed and have them update back to mongo db?
    I'll appreciate a quick response cos i have a deadline

  • @imqueenmoonkeep3614
    @imqueenmoonkeep3614 2 роки тому

    Could you please help me get only one document for my data to show per ejs page

    • @marinakim2929
      @marinakim2929  2 роки тому

      Hi sorry I just saw your comment, do you still need help?))

  • @nalakabeligammana3365
    @nalakabeligammana3365 3 роки тому

    This is great and thank you very much.
    But when I doing the example, I got the error like below,
    3|
    4|
    >> 5|
    6|
    7|
    8|
    Cannot read property 'forEach' of undefined
    could you please help with this?

    • @marinakim2929
      @marinakim2929  2 роки тому

      Yes I think you had the same issue as me, maybe try passing the error as a first argument in the server.js file

  • @BrestSouth
    @BrestSouth 3 роки тому

    Спасибо очень классно

  • @julies2430
    @julies2430 3 роки тому +1

    Where did you get your shirt!!! I love it!

    • @marinakim2929
      @marinakim2929  3 роки тому

      Hi) I designed it, it’s in my teespring store 😋thank you!!

  • @Sunil_gora
    @Sunil_gora 3 роки тому

    How to store these in a table😥

  • @farwanadeem
    @farwanadeem 3 роки тому

    i want to post data to mongo atlas, which is an object and it gives me an error, what should I do now? kindly guide

    • @farwanadeem
      @farwanadeem 3 роки тому

      I got this error
      Error: Objects are not valid as a React child (found: object with keys {value}). If you meant to render a collection of children, use an array instead.

  • @markk1167
    @markk1167 3 роки тому +1

    Hi Marina, I hope you are doing well. Your tutorials are great/very helpful. I need to do something similar to this but I don't want to return all the records from the collection. I would like to have fields on the EJS page where parameters will be passed to MongoDB to retrieve a single record and displayed on another EJS page. I also left an IG message for you on this topic.

    • @marinakim2929
      @marinakim2929  2 роки тому

      Omg I’m so late with the reply, must have missed it or something.. your question is quite interesting and I added to my list of tutorials :)

  • @TheErudito
    @TheErudito 2 роки тому

    I love you

  • @amirabourogaa9621
    @amirabourogaa9621 3 роки тому

    hello thank you for the video its very helpfull but i am strugling with an issue wich is that the data is not showing on the browser without any error any solution for that please ?

  • @nooralmoswy7347
    @nooralmoswy7347 2 роки тому

    please ms , how can the student enter him code and appear the certificate for him?

    • @marinakim2929
      @marinakim2929  2 роки тому +1

      Hello) sorry i'm not sure i understood the question.

    • @nooralmoswy7347
      @nooralmoswy7347 2 роки тому

      @@marinakim2929 I have a project. When the student wants a graduation certificate, they just enters the code and a certificate will appear. I have not found a solution for this project yet

  • @HuhSenpai
    @HuhSenpai 3 роки тому

    i keep having an undefined movieLIST

  • @xcellentmotionz
    @xcellentmotionz 2 роки тому

    Thank you for this.. you are a life saver. i have one more question. how do i pass an aggregate function over to html. ( i want the total number of document to be seen in my html, and to update anytime a document is added. been on this for 2 days now...no show..can anyone please help?
    .

    • @marinakim2929
      @marinakim2929  2 роки тому +1

      I’ll have a look into that) thanks for the feedback

    • @xcellentmotionz
      @xcellentmotionz 2 роки тому

      @@marinakim2929 Thanks ... I appreciate...

    • @xcellentmotionz
      @xcellentmotionz 2 роки тому

      @@marinakim2929 Hello Marina.. any luck with passing mongodb aggregate to ejs yet?

    • @marinakim2929
      @marinakim2929  2 роки тому +1

      @@xcellentmotionz I think there’s a dab.collection.count() function that you can use to store the number of documents. You can pass it to ejs the same way as other variables 😌

    • @marinakim2929
      @marinakim2929  2 роки тому

      @@xcellentmotionz then for the update try the onChange method on the form tag

  • @coffeeismylife5863
    @coffeeismylife5863 2 роки тому

    Mam plz make a video of how to update and delete also plzzzzzzz

    • @marinakim2929
      @marinakim2929  2 роки тому

      Suuure I’m already preparing it, will publish tomorrow🙂👏

  • @CodiciPythonici
    @CodiciPythonici 3 роки тому

    doesn't work for me

  • @kalyanking1080
    @kalyanking1080 3 роки тому +1

    Hey please make authentication video using nodejs using passport

    • @marinakim2929
      @marinakim2929  3 роки тому

      Hi)) sure I will do. I have a video how to make Facebook authentication using passport

  • @talhazulfiqar571
    @talhazulfiqar571 3 роки тому

    Thanks
    please make a video get data mongoDB Atlas using reactjs as frontend

    • @marinakim2929
      @marinakim2929  2 роки тому +1

      Thanks)) I have a video covering that.. something like MERN crud operations

    • @talhazulfiqar571
      @talhazulfiqar571 2 роки тому

      Yeah, why you stop uploading the videos?

    • @marinakim2929
      @marinakim2929  2 роки тому

      @@talhazulfiqar571 cause I’m working in big4 now 😂😂😂😂

    • @talhazulfiqar571
      @talhazulfiqar571 2 роки тому

      what is big4? company?

    • @marinakim2929
      @marinakim2929  2 роки тому

      @@talhazulfiqar571it’s one of big four consulting companies.. so now it’s hard for me to manage job and UA-cam)

  • @tworsfeline2302
    @tworsfeline2302 Рік тому

    Wait, why did you show us your server password?

  • @diwakarkirar5102
    @diwakarkirar5102 Рік тому

    She is so cute man 😍😍

  • @tworsfeline2302
    @tworsfeline2302 Рік тому

    THE CURSED NUMBER OF LIKES

  • @martinn1071
    @martinn1071 3 роки тому +1

    thanks so much!
    btw this character _ is called "underscore" :)
    ________
    :)

    • @marinakim2929
      @marinakim2929  3 роки тому +2

      Ah thanks)))) i thought it’s lodash hehe

  • @chrismai4606
    @chrismai4606 Рік тому

    I am a noob and this is not a turtorial for noobs....

  • @mdhozifamazumder79
    @mdhozifamazumder79 2 роки тому

    You look like your coding... 🙂
    Smart and Hot....
    Take my love... 🥰

  • @WaffenVerband
    @WaffenVerband 3 роки тому +1

    OMG you're so cute

  • @mithlesh72.
    @mithlesh72. Рік тому +2

    i got this error inthe end what i do ....MongooseError: Model.find() no longer accepts a callback

  • @0xba0a
    @0xba0a 2 роки тому

    Thank you

  • @arc8696
    @arc8696 2 роки тому

    Thank you