Ankush11903 / Foodsale

It utilizes Swiggy's live API data to fetch real-time restaurant information, and includes features such as infinite scrolling, shopping cart feature using Redux Toolkit, and UI configuration with conditional rendering and caching for better user experience. Additionally, the app implements Shimmer UI, lazy loading, and dynamic routing .
https://foodsale.vercel.app
24 stars 2 forks source link

Need to use fetch() Swiggy's endpoint for live restaurants data #6

Closed theprashasst closed 2 months ago

theprashasst commented 3 months ago

I think instead of just copying the whole JSON file from Swiggy's endpoint you could have implemented fetching data from Swiggy's api and then using live data

https://github.com/Ankush11903/Foodsale/blob/a21269f237297921b83b35e58e3e35fa1fb060b6/src/Constants.jsx#L1-L2582

Ankush11903 commented 3 months ago

I have used live data only but this thing is done long back when I don't have enough knowledge of backend and cors issue. So,this was just alternative for downloading cors extension.