# 9 MERN Project Series | Display Database data on React Frontend | Food Delivery App | Hindi 2023

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.พ. 2025
  • 9 MERN Project Series | Display Database data on React Frontend | Food Delivery App | Hindi 2023
    MERN FULLSTACK PROJECT SERIES. MERN Stack stands for MongoDB, Express.js, React JS and Node.js.
    This is the PART 9 of our MERN Stack Project Series in which we will be fetching our data from database through an API endpoint and displaying it on our react frontend.
    ✅ Content Creator & Video Editor: Arshdeep Singh - / arshdeep-singh123
    ✅✅-------------------MY GEARS-------------------------✅✅
    Boya Mic: amzn.to/3K85nbx
    HP Wireless Mouse & Keyboard: amzn.to/3toLDdS
    Lenovo Laptop i5: amzn.to/3K6grpQ
    Mouse Pad: amzn.to/3fmuEko
    Google Pixel 4a: amzn.to/3nk0imH
    Boat Earphones (BassHead): amzn.to/3zVPSPt
    msi Monitor: amzn.to/3qnqEX2
    SOCIAL MEDIA:
    Instagram: / endtoend91
    In this Fullstack Project Series we will be going to build a Food Delivery Web Application using #mernstack #mernstack in 2023 can arguably be considered as one of the top most, in demand #fullstack for #webdevelopment .There are huge demand for #mernstack #webdeveloper currently. In this series I'll be covering some very important topics from #mongodb , #mongoose , #react / #reactjs , #express / #expressjs and #nodejs .
    Concepts like useReducer , Context API, useContext, react hooks, createportal , async/await, promises will be covered from #react and #javascript .
    Will be using #bootstrap 5 for making our application #responsive .
    Will be using MongoDB Atlas for storing our data in a #database .
    Viewers can ignore these tags:#endtoend javascript ,javascript mastery ,js mastery ,master javascript ,mern stack ,mern stack tutorial ,react full stack ,mongodb tutorial ,full stack ,mern stack tutorial 2022 ,mern tutorial ,mern stack project ,mern app ,mern app with authentication ,react node express mongodb ,mern stack traversy ,mern stack tutorial for beginners ,mern application ,full stack mern application ,mern stack crash course ,mern stack react ,mern stack social media ,full stack mern webdevsimplified ,mongoosejs ,mongoose js ,mongoose node ,mongoose mongodb ,mongodb nodejs ,mongodb ,mongo nodejs ,mongodb node js ,mongo node ,mongo node js ,mongodb node ,mongoose node js ,mongoose nodejs ,mongoose tutorial ,mongoose js tutorial ,mongoose javascript ,mongoose javascript tutorial , ,mern app ,MERN STACK ECOMMERCE ,MERN STACK ECOMMERCE WEBSITE REACT ,REDUX ,MONGODB IN HINDI COMPLETE PROJECT ,mern stack ecommerce ,mern stack ecommerce project github ,mern stack ecommerce tutorial ,mern stack ecommerce website ,mern stack in hindi ,ecommerce website in hindi ,mern stack ecommerce website in hindi ,ecommerce website source code free download ,mern ,mern stack app ,mern full project ,mern stack ,mern stack in hindi ,prerequisites for mern stack ,mern stack full course in hindi ,mern stack tutorial in hindi ,mern ,mern stack ,react ,express ,node.js ,mongodb ,mern tutorial ,react full stack ,full stack ,mern stack tutorial, json web token, jwt token, brcypt.js
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @saurav3589
    @saurav3589 ปีที่แล้ว +9

    We can create the Carousel in HomePage without copying it. By the way, learning from this course is immensely beneficial. Your explanations are exceptional and unparalleled, as no one else is able to deliver such clarity.

  • @ankur_IIITL-26
    @ankur_IIITL-26 ปีที่แล้ว +8

    Best playlist for mern project on entire TH-cam .
    I learnt mern from Harry bro but there was no such major project. And also from here I learnt many new things

    • @EndtoEnd91
      @EndtoEnd91  ปีที่แล้ว +6

      Thanks for this comment 😊🤝. But #harrybhai is on another level ✨💯

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

      ​@@EndtoEnd91can you plzz tell why card are not visible in my frontend I am facing these problem for a long time

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

      @@Enigma2002j same here if you resolve this then tell me to how resolve it or provide the code

  • @vishnuravva7992
    @vishnuravva7992 ปีที่แล้ว +2

    Really coping up with this playlist👍👌

  • @mukeshpandey3993
    @mukeshpandey3993 ปีที่แล้ว +3

    Awesome sir ❤.
    Waiting for projects more than this😊

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

      Please help me
      (Props.ImgSrc ) not working in cards please help me

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

    Very Informative Playlist

  • @AashishKumar-vb3qb
    @AashishKumar-vb3qb หลายเดือนก่อน

    Bro talk like 'Aamir Khan " 😃😃👍👍, nice video sir ji

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

    Good Video

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

    Support You Sir

  • @anshul1212
    @anshul1212 ปีที่แล้ว +7

    toArray(function()) did not work as collection.find() takes time and should use await for this and should use it like this ----- let data=await fetched_data.find().toArray();

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

      Can you give to error handling for this data

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

      Thanks

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

    great

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

    very good course. But I do have a query. Why are you using POST request when the task is only to fetch some data from db and not change it? We should use GET for that right?

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

      in get data the response is displayed on upper search panel when routes change and data uploading time ,
      which will destruct our security purpose And through post method data is in hided form.

  • @ArunKumar-oc8tv
    @ArunKumar-oc8tv ปีที่แล้ว +4

    how we are getting data while making a post request(in diaplayData). Should'nt we make a get request to get the data instead of post request????

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

      in get data the response is displayed on upper search panel when routes change and data uploading time ,
      which will destruct our security purpose And through post method data is in hided form.

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

    32:59 data print nhi hora....... Someone please help 🙏

  • @sameerhassan8754
    @sameerhassan8754 ปีที่แล้ว +10

    A lot of people are getting this error that they cannot get the data.
    So the problem is that he is using different version of mongoose. So its documentation is changed. I tried to find the new documentation about this topic but i could not find it. So i downloaded old version of mongoose and i got the data.
    he is using 6.6.1 and at this time mongoose version is 7.3.1.
    Run this command in the backend folder
    npm i mongoose@6.6.1
    And then copy paste his code. You Will receive the data. Hope it Works For u bcz it worked for me.
    PS : I am also a beginner trying to find solutions. I am not a pro. So don't ask me how to make it work in the latest version

    • @Ayush_.
      @Ayush_. ปีที่แล้ว +2

      thankyou bhai tum bahut mast kaam karta he

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

      Yes, this helped me fix the DisplayData, Thankyou!

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

      Thank you Brother .It worked for me .

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

      @@sachinmags9605 hey..foodCategory data is not showing on mongodb

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

      please reply if possible

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

    I have used Carousel as component and passed data back to Home Component from Carousel Component which is more flexible and optimized

  • @firebout7675
    @firebout7675 ปีที่แล้ว +3

    let option = props.options ?? {};
    let priceOptions = Object.keys(option);

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

    in the video when I am using useState and calling at 37:27 my webpage does not the way it should instead only one cart is visible .please help

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

    but why to write display code in dabase file...it is unreachable showing ... why nit display data code written in display data file

  • @ShubhamChoudhary-p8w
    @ShubhamChoudhary-p8w ปีที่แล้ว

    i have use in loadData() but (ERROR
    NetworkError when attempting to fetch resource.
    ) this error in project.

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

    we didn't even defined the schema and model for the food_items and foodCategory , are those fixed ?

  • @Snehal10patil
    @Snehal10patil 2 ปีที่แล้ว +4

    Let priceOptions = Object.keys(options); showing cannot convert undefined or null to object

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

    At 18:14, when using res.send(global.food_items,global.foodCategory); I am getting internal server error 500. It is working fine when i am using only one of the parameters in res.send(). Any fixes for the issue??

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

      Nevermind, missed wrapping both the parameters in [ ]

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

      Have you written the db.js code using try and catch? If so, can you please tell me how have you included the foodCategory line in it?

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

      yes this is true@@shashwatanand5169

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

    sir when i map priceoption it retun _id and all other option data in array,
    likeit return [_id,half,full].

  • @sshubhamjoshie1274
    @sshubhamjoshie1274 ปีที่แล้ว +3

    Data is not fetched , and mongo db status is true means it is connected but null is returned in Thunderclient

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

      same it happen with me if anyone have solution pls help

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

      @@preranashinde8554 Same error

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

      @@bikramjitbiswas7712 just check code again and code is available on 12th video in the discription

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

      Check the code where the foodCategory data is being fetched and assigned to the global.foodCategory variable. Make sure that the fetched data is not null and is correctly assigned to the variable.
      Verify that the foodCategory collection in your MongoDB database contains the expected data. Check if the collection is populated with the correct documents.

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

      const fetched_data=mongoose.connection.db.collection("BeingFoody_items");
      const data = await fetched_data.find({}).toArray();
      global.BeingFoody_items = data;
      just write these three lines in db.js in place of
      const fetched_data=mongoose.connection.db.collection("BeingFoody_items");
      fetched_data.find({}).toArray(function(err,data){
      if(err) console.log(err);
      else{
      console.log(data);
      global.BeingFoody_items=data;
      }
      })
      it will work now

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

    At 10:00 my data was displaying as null.
    I dont know why but putting an '_' before req worked

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

    its does not display data of full and half it just showing 0 on card how can i solve this

  • @l.m.t.d6653
    @l.m.t.d6653 ปีที่แล้ว

    somebody help me in which video the collection foodItem is created

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

    53:30
    i have tried alot,
    console.log (prop.options) is displaying data on the console but not passing it to the front-end

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

      same

    • @Hilalishere
      @Hilalishere ปีที่แล้ว +2

      ​​@@motivationalshorts393there's a little issue with the keys .. He did not explained it well,
      Don't write the code as it is, i have changed the code and it has worked...

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

      can you please provide the correct code@@Hilalishere

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

      @@Hilalishere can you provide your git repo link

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

      please send that code@@Hilalishere

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

    Unable to fetch data from database, whole application is running seamlessly without error, but when I try to fetch data from database I m receiving null in array. Please help me with this!!

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

      hi pratik i am having a same issue if you solve this issue please let me know how you do it

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

      did uh guys solve the issue , because i m getting the same ??

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

    Can anyone help me please i am stuck at img fetching in card i done exactly same but my img not fetching

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

    search functionaility in the end

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

    sir apka dekh ke project bana raha hu error aa raha hai map. foodcat not a function bata raha hai error nikalo na please

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

    Img not showing in card rest everything working fine please help me

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

      Any solutions for this??

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

    Hello sir, at 10:05 I am not able to fetch data while sending the response through the thunder client API. Please help me, anyone.

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

      Bro I am also facing this error please tell me how to solve this error

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

      What exactly error you are getting so I can able to guide you further.@@ok_this_is_priyam

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

      try this one 100% worked:
      async function fetchData() {
      try {
      const fetched_data = mongoose.connection.db.collection("food_items");
      const foodCategory= mongoose.connection.db.collection("food_Category");
      const data = await fetched_data.find({}).toArray();
      const catData= await foodCategory.find({}).toArray();
      global.food_items = data;
      global.food_Category = catData;
      // console.log(global.food_items)
      console.log(global.food_Category)
      } catch (error) {
      console.error('Error fetching data:', error);
      }
      }

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

      @@ok_this_is_priyam try this one 100% worked:
      async function fetchData() {
      try {
      const fetched_data = mongoose.connection.db.collection("food_items");
      const foodCategory= mongoose.connection.db.collection("food_Category");
      const data = await fetched_data.find({}).toArray();
      const catData= await foodCategory.find({}).toArray();
      global.food_items = data;
      global.food_Category = catData;
      // console.log(global.food_items)
      console.log(global.food_Category)
      } catch (error) {
      console.error('Error fetching data:', error);
      }
      }

  • @NeerajPathak-lf2tg
    @NeerajPathak-lf2tg 8 หลายเดือนก่อน

    Where is the foodItem JSON I am not able to find. It is not there in the first video...

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

      it is in #4

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

    i have done everything but i didnt get from where that images came from directly can anyon help

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

    i have issue of undefined map any solution ??

  • @VijayKumar-nr7lr
    @VijayKumar-nr7lr ปีที่แล้ว +1

    Cannot read properties of null (reading 'map') how to rectify this error in 40 min

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

      yaa me tooo

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

      const options = props.options || {};
      const priceOptions = Object.keys(options).length > 0 ? Object.keys(options) : [];
      @@Prachu_033

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

      add this code

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

    foodCat!==[ ] is giving an error saying This condition will always return 'true' since JavaScript compares objects by reference, not value.
    How to solve this?

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

      did you get any solution ?

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

      foodCat.length !== 0

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

      @@heliosplays5926 use foodCat.length!==0

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

      cat_data == [ ]
      ? """"""""
      : cat_data.map((data) => {
      return (


      {data.CategoryName}
      @@heliosplays5926 use this , reverse it

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

      Can u please tell me how did u solve that problem?

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

    You have explained everything in very detailed way, Pls try to make a complete playlist

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

      It is indeed, a playlist. Few more videos are left. It will be completed in a short while.

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

    filter map not working

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

    Does anyone have db.js code i am having errors 17:28

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

    Sir my response 1 is not showing

  • @DiyaSharma-we4fp
    @DiyaSharma-we4fp 7 หลายเดือนก่อน

    Mere server me problem h mere laptop pe thunder client response nhi de rha aur dusre ke laptop pe shi aaya please koi meri help krdo

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

    Json. File nehi add hua, mera
    FoodItem, category file nehi hua... Please response

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

    I am getting a white screen of death in the "/" route, Can somebody tell me where can the problem be? I have set the routes properly in App.js too

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

      check in developer mode in browser what the error copy pASte in chatgpt aND taddaa issue solved

  • @apoorvbansal6613
    @apoorvbansal6613 ปีที่แล้ว +2

    ".map is not a function" getting this error, pls help

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

      Do u found any answer bro

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

      this happens when either your data is not in array form or you are not awaiting the data. Check your data is in array form first...

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

      @@niketkumar3248 same code I have used

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

      convert all to async first

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

    cards are not rendering
    please help

  • @infomative-insights
    @infomative-insights 2 ปีที่แล้ว

    we can pass data child to parent using props. react provide this option. without redux we can pass.

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

      why does my webpage does not display the cards with filter i want instead it displays only one card . And moreover it did not displayed the previous sentence we printed after matching

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

      @dipak jayswal

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

      this is my code till 42.09

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

      Did you get the error Avinash

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

      @@avinashpathak8237 did you correct it

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

    my app function is rendering two times

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

    cards not able to be displayed along with map function. In CONSOLE its showing the CORS error although i added the CORS code in index.js of backend as you said. Earlier i was able to show the cards

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

      bro is the problem solved

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

      I am facing same problem cards are not visible what is the solution for these?

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

      @@Enigma2002j i am facing the same issues as well

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

      Bro, I am stuck with the same problem if you have solved that please help

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

      @@RaxpperGaming did u got solution

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

    mongodb se data read nahi ho rha and display api per call karna ka bad response mai null a rha hai

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

      try this one 100% worked:
      async function fetchData() {
      try {
      const fetched_data = mongoose.connection.db.collection("food_items");
      const foodCategory= mongoose.connection.db.collection("food_Category");
      const data = await fetched_data.find({}).toArray();
      const catData= await foodCategory.find({}).toArray();
      global.food_items = data;
      global.food_Category = catData;
      // console.log(global.food_items)
      console.log(global.food_Category)
      } catch (error) {
      console.error('Error fetching data:', error);
      }
      }

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

      did you got solution?

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

      @@seekgamersproductions7291 yes.

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

    Database me data kidhar se import Kiya bhai and I want that json file

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

      drive link description me hai

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

      @@ramantripathi6980 bhai kha hai..??

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

    I am not able to see options in my site plz help me

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

      replace this line in Card.js just after return

  • @codingstuff-d1b
    @codingstuff-d1b ปีที่แล้ว

    it prints empty array however i also mention correct collection

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

      try this one 100% worked:
      async function fetchData() {
      try {
      const fetched_data = mongoose.connection.db.collection("food_items");
      const foodCategory= mongoose.connection.db.collection("food_Category");
      const data = await fetched_data.find({}).toArray();
      const catData= await foodCategory.find({}).toArray();
      global.food_items = data;
      global.food_Category = catData;
      // console.log(global.food_items)
      console.log(global.food_Category)
      } catch (error) {
      console.error('Error fetching data:', error);
      }
      }

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

      same here do you got any solution??

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

    iska code hai kya sir github per mera run nahi ho rha sahi se backend connect karta he error ajata hai

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

    My backend works perfectly but when i did this so my data is not show in react some one explain me if you face the same problem

    • @sonammalik17
      @sonammalik17 ปีที่แล้ว +2

      const fetched_data=mongoose.connection.db.collection("BeingFoody_items");
      const data = await fetched_data.find({}).toArray();
      global.BeingFoody_items = data;
      just write these three lines in db.js in place of
      const fetched_data=mongoose.connection.db.collection("BeingFoody_items");
      fetched_data.find({}).toArray(function(err,data){
      if(err) console.log(err);
      else{
      console.log(data);
      global.BeingFoody_items=data;
      }
      })
      try this, it may help

    • @TahaAkber-pq3ei
      @TahaAkber-pq3ei ปีที่แล้ว

      @@sonammalik17 Thankyou, it is working :)

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

      Thanks bro!!

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

      @@sonammalik17 i try this but it stay not woking, empty array is returning [] like this

    • @Beast-AreHumans
      @Beast-AreHumans 7 หลายเดือนก่อน

      @@ManyamChaitanya also mine null array is return . due to that project is .............

  • @firebout7675
    @firebout7675 ปีที่แล้ว +4

    use this otherwise react will throw a TypeError, bec it renders the return block first and then anything else, during rending of the return block, the priceOption array is null hence no map function can be run
    let option = props.options ?? {};
    let priceOptions = Object.keys(option);

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

      really helpful, thanks.

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

    55:00 pudhe bhaghych ahe

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

    anyone please give me crousel component code
    🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

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

    where i can find fooditems database?

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

      watch previous videos , he has provided json file in description

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

    .lowercase is not a function error aa raha he

    • @Mahesh-vz4dq
      @Mahesh-vz4dq ปีที่แล้ว

      Case sensitive
      Use .toLowerCase()

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

      {foodItem !== []? foodItem.filter((item)=> (item.CategoryName === data.CategoryName && (item.name.toString().toLowerCase()).includes(search.toString().toLowerCase()))).map(filterItems=>{
      return(

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

    My toArray declaration was marked deprecated everytime can anyone give me solution..

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

      Same problem..Is ur problem solved?

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

      @@shreyakumari5674 did u find any solution?

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

      const fetched_data=mongoose.connection.db.collection("BeingFoody_items");
      const arr = await fetched_data.find({}).toArray();
      arr.forEach(function(err,data){
      if(err)
      console.log(err);
      else{
      console.log(data);
      global.BeingFoody_items=data;
      console.log(global.BeingFoody_items);
      }
      })

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

      const fetched_data=mongoose.connection.db.collection("BeingFoody_items");
      const data = await fetched_data.find({}).toArray();
      global.BeingFoody_items = data;
      just write these three lines in db.js in place of
      const fetched_data=mongoose.connection.db.collection("BeingFoody_items");
      fetched_data.find({}).toArray(function(err,data){
      if(err) console.log(err);
      else{
      console.log(data);
      global.BeingFoody_items=data;
      }
      })
      it will work now

    • @GaneshGanesh-il7un
      @GaneshGanesh-il7un ปีที่แล้ว +1

      ​same array null

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

    sir food k data ki link kaha h

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

    is there any source code available??

    • @a.hannan_06
      @a.hannan_06 ปีที่แล้ว

      nope. this guy didnt provide repo ffs

  • @K25-n4v
    @K25-n4v ปีที่แล้ว

    Can anyone share the github link of this project.

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

      it is in the last video description

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

    can someone help??

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

    i stucked

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

    Category are not showing

  • @Ashutosh-pg8gy
    @Ashutosh-pg8gy ปีที่แล้ว

    search.toLocaleLowerCase is not a function
    Can anyone give the solution??

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

      {foodItem !== []? foodItem.filter((item)=> (item.CategoryName === data.CategoryName && (item.name.toString().toLowerCase()).includes(search.toString().toLowerCase()))).map(filterItems=>{
      return(

    • @SauravKumar-nx7er
      @SauravKumar-nx7er ปีที่แล้ว

      Same

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

      use == const [search, setSearch]=useState(''); instead of const [search, setSearch]=useState([]);

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

      You got any solution??

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

      write String(search).toLocaleLowerCase() in place of search.toLocaleLowerCase()
      it worked in my case

  • @Maitri719Thaker13
    @Maitri719Thaker13 ปีที่แล้ว +2

    i m getting fetch data error what to do??

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

      did you get any solution