akhil2k-lc / bookStoreApp

33 stars 29 forks source link

Sir issue is not sorted , #2

Open aman-singh12 opened 4 months ago

aman-singh12 commented 4 months ago

image

Alokpatel88 commented 4 months ago

In the lecture at timestamp 57:40, it was mentioned that the list.json file containing the book list data was not uploaded to the Git repository. Therefore, we need to create our own books data in MongoDB.

To ensure the frontend code functions correctly, follow these steps:

Create Books Data in MongoDB: Set up your MongoDB database and insert your own book records. Update the Frontend to Fetch Books: Modify the frontend code to point to the new endpoint where the books are fetched from your MongoDB database.

jitender294 commented 4 weeks ago

In the lecture at timestamp 57:40, it was mentioned that the list.json file containing the book list data was not uploaded to the Git repository. Therefore, we need to create our own books data in MongoDB.

To ensure the frontend code functions correctly, follow these steps:

Create Books Data in MongoDB: Set up your MongoDB database and insert your own book records. Update the Frontend to Fetch Books: Modify the frontend code to point to the new endpoint where the books are fetched from your MongoDB database.

[{

    "id":1,
    "name":"Story Book",
    "title":"Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
    "price":"0",
    "category":"free",
    "image":"https://img.freepik.com/free-vector/hand-drawn-flat-design-stack-books-illustration_23-2149341898.jpg?t=st=1726145169~exp=1726148769~hmac=7f3b403e573342a82176cd2f2fb8ed2da0521ed5c210acf8d2632f64d1c9767e&w=740"
},
{
    "id":2,
    "name":"Story Book",
    "title":"Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
    "price":"0",
    "category":"free",
    "image":"https://img.freepik.com/free-vector/hand-drawn-flat-design-stack-books-illustration_23-2149341898.jpg?t=st=1726145169~exp=1726148769~hmac=7f3b403e573342a82176cd2f2fb8ed2da0521ed5c210acf8d2632f64d1c9767e&w=740"
},
{
    "id":3,
    "name":"Story Book",
    "title":"Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
    "price":"0",
    "category":"free",
    "image":"https://img.freepik.com/free-vector/hand-drawn-flat-design-stack-books-illustration_23-2149341898.jpg?t=st=1726145169~exp=1726148769~hmac=7f3b403e573342a82176cd2f2fb8ed2da0521ed5c210acf8d2632f64d1c9767e&w=740"
},
{
    "id":4,
    "name":"Story Book",
    "title":"Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
    "price":"0",
    "category":"free",
    "image":"https://img.freepik.com/free-vector/hand-drawn-flat-design-stack-books-illustration_23-2149341898.jpg?t=st=1726145169~exp=1726148769~hmac=7f3b403e573342a82176cd2f2fb8ed2da0521ed5c210acf8d2632f64d1c9767e&w=740"
},
{
    "id":5,
    "name":"Story Book",
    "title":"Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
    "price":"0",
    "category":"free",
    "image":"https://img.freepik.com/free-vector/hand-drawn-flat-design-stack-books-illustration_23-2149341898.jpg?t=st=1726145169~exp=1726148769~hmac=7f3b403e573342a82176cd2f2fb8ed2da0521ed5c210acf8d2632f64d1c9767e&w=740"
},
{
    "id":6,
    "name":"Story Book",
    "title":"Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
    "price":"0",
    "category":"free",
    "image":"https://img.freepik.com/free-vector/hand-drawn-flat-design-stack-books-illustration_23-2149341898.jpg?t=st=1726145169~exp=1726148769~hmac=7f3b403e573342a82176cd2f2fb8ed2da0521ed5c210acf8d2632f64d1c9767e&w=740"
},
{
    "id":8,
    "name":"Story Book",
    "title":"Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
    "price":"0",
    "category":"free",
    "image":"https://img.freepik.com/free-vector/hand-drawn-flat-design-stack-books-illustration_23-2149341898.jpg?t=st=1726145169~exp=1726148769~hmac=7f3b403e573342a82176cd2f2fb8ed2da0521ed5c210acf8d2632f64d1c9767e&w=740"
}

] this is list.json data paste this in public and import in mongodb it problem solve