Welcome to the Swiggy WebApp Clone repository! This project is a React.js-based web application that replicates the features of the popular food delivery platform Swiggy. The clone integrates Swiggy's Live API to provide real-time information about restaurants and dishes, enabling users to explore, select, and order their preferred meals.
During development, you may encounter Cross-Origin Resource Sharing (CORS) issues.
To overcome CORS issues in your development environment, you can use the "CORS" Chrome extension. This extension allows you to temporarily disable CORS restrictions in your browser, making it easier to test and develop your application.
-
Install the CORS Chrome Extension.
-
Once the extension is installed, make sure it's enabled when testing your Swiggy WebApp Clone in the browser.
Note: The CORS extension is intended for development purposes only. Ensure that you disable the extension when accessing other websites for security reasons.
Explore the live demo of the Swiggy WebApp Clone here.
- Integrated Swiggy's Live API to fetch the latest information about restaurants and dishes.
- Enhanced code readability, modularity, and maintainability through the use of custom React Hooks.
- Introduced a new feature for recently added restaurants using Higher Order Components.
- Efficient state management and seamless Add to Cart functionality with the Redux Toolkit library.
- Shimmer UI for a visually appealing user experience.
- Online or Offline Status indicators for user awareness.
- Code Splitting and Lazy Loading for optimized performance.
- React.js
- Redux Toolkit
- Tailwind CSS
- Parcel (Bundler)
src
: Main source code directory.components
: Reusable React components.hooks
: Custom React Hooks.hooks
: Custom Hooks.--tests--
: Testing using Jeststore
: Redux store configuration and slices.utils
: Utility functions.
-
Clone the repository.
git clone https://github.com/g3vind/swiggy-webapp-clone.git
-
Install dependencies.
cd swiggy-clone npm install
-
Run the development server.
npm start
-
Open your browser and navigate to http://localhost:1234.
Feel free to navigate through the application, provide feedback, and enjoy the Swiggy-like experience! Happy coding!