How abhay-gupta-199/swiggy-clone works
This is a small Swiggy-style restaurant browsing frontend. A visitor enters through the routed React app, browses restaurant listings fetched from Swiggy, filters them by name or rating, and can open a restaurant route. The header also exposes offer, help, sign-in, and cart routes; several of those screens are present but their implementations were not sampled. Edges reflect the shown router configuration and component calls; unsampled screen behavior is not inferred.
Main entry points: main.jsx Route setup · Header.jsx Navigation header · Body.jsx Restaurant listing · App.jsx App shell
Components 16
App and routing
- Route setup
src/main.jsx - App shell
src/App.jsx - Navigation header
src/components/Header.jsx - Footer
src/components/Footer.jsx
Restaurant discovery
- Restaurant listing
src/components/Body.jsx - Restaurant fetch
src/components/Apicalling.jsx - Swiggy API
- Name search
src/components/Search.jsx - Restaurant card
src/components/RestaurantCard.jsx
Other screens
- Restaurant details
src/components/RestaurantDetails.jsx - Offers screen
src/components/Offer.jsx - Help screen
src/components/Help.jsx - Sign-in screen
src/components/Signin.jsx - Cart screen
src/components/Cart.jsx - Error screen
src/components/Error.jsx
Other components
- Visitor
Connections 20
- Visitor → Route setup: opens
src/main.jsx - Route setup → App shell: routes to
src/main.jsx - Route setup → Restaurant listing: routes to
src/main.jsx - Route setup → Offers screen: routes to
src/main.jsx - Route setup → Help screen: routes to
src/main.jsx - Route setup → Sign-in screen: routes to
src/main.jsx - Route setup → Cart screen: routes to
src/main.jsx - Route setup → Restaurant details: routes to
src/main.jsx - Route setup → Error screen: handles errors
src/main.jsx - App shell → Navigation header: renders
src/App.jsx - App shell → Footer: renders
src/App.jsx - Navigation header → Offers screen: links to
src/components/Header.jsx - Navigation header → Help screen: links to
src/components/Header.jsx - Navigation header → Sign-in screen: links to
src/components/Header.jsx - Navigation header → Cart screen: links to
src/components/Header.jsx - Restaurant listing → Restaurant fetch: fetches via
src/components/Body.jsx - Restaurant fetch → Swiggy API: requests data
src/components/Apicalling.jsx - Restaurant listing → Name search: renders
src/components/Body.jsx - Restaurant listing → Restaurant card: renders
src/components/Body.jsx - Restaurant card → Restaurant details: links to
src/components/RestaurantCard.jsx