π FoodPeek is a React based food delivery application.
Hosted on foodpeeek.vercel.app, this application brings a hassle-free way to explore and order from restaurants.
- Live Swiggy APIs for accurate menus, availability, and promotions.
- Graceful sample-data fallback β if the live API is unavailable or returns nothing, the app shows a rich sample dataset (100+ restaurants and a full sample menu) behind a clear notice, so the UI never breaks.
- Lazy Loading & Code Splitting to enhance loading times and responsiveness.
- Shimmer UI for smooth loading effects.
- Installable PWA with offline-aware online/offline status.
- SWR for data fetching, caching, and request deduplication.
- React Context + useReducer for the shopping cart (persisted to
localStorage). - Custom Hooks to improve code reusability and maintainability.
- Add-to-cart with quantity steppers across the menu, a live floating order bar, and a header cart badge.
- Full cart page with itemised bill (item total, delivery, taxes), place-order flow, and empty/placed states.
- Search Functionality to quickly find restaurants and dishes.
- Filtering Options based on cuisine, ratings, and offers.
- React Router for seamless navigation.
- Redesigned restaurant menu with a gradient hero, sticky category navigation, and modern dish cards.
- 404 Error Page for handling navigation issues gracefully.
- Completely Responsive design for an optimal experience on any device.
- π Multi-Language Support: Navigate in your preferred language.
- π Dark Mode: A sleek, user-friendly dark theme.
- π Location-Based Personalization: Custom delivery location setup.
- π³ Real Checkout & Payments: A backend with secure transactions and order tracking.
- π User Authentication: Login/Sign-in with personalized services.
- Framework: React 19
- Data Fetching: SWR
- Routing: React Router
- Styling: Tailwind CSS v4
- Bundler: Vite
- PWA & SEO: vite-plugin-pwa
- Hosting: Vercel
git clone https://github.com/droidbg/FoodPeek.git
cd FoodPeekcd client
npm install
npm startCreate a .env file in the client directory and add the following variables:
# CORS proxy key (https://cors.sh)
VITE_API_KEY=your_cors_key_here
We welcome contributions! Feel free to open issues and pull requests.
This project is licensed under the MIT License.
Enjoy fast, seamless food and grocery delivery with FoodPeek!! π

