This application allows users to browse products, add them to their cart or wishlist, and manage their selections. The site offers a user-friendly interface with clear navigation and real-time updates. Key features include product categorization, rating, and dynamic data visualization. Under the hood, the application utilizes various React concepts and libraries to ensure a robust and efficient user experience.
List of React Fundamental concepts used in the project:
- State Management: Using
useStatehook to manage dynamic data like cart items, wishlist items, and other stateful components. - Effects: Employing
useEffecthook to perform side effects, such as fetching data or subscribing to events. - Routing: Implementing
react-router-domfor navigation between different pages of the application. - Context API: Using Context API to share data across components without prop drilling.
- Components: Building reusable components using functional and class-based components.
- Hooks: Leveraging custom hooks to extract reusable logic.
- Product categorization: Organizing products into meaningful categories.
- Add to cart functionality: Allowing users to add items to their shopping cart.
- Data visualization: Using charts and graphs to present data in a visual format.
- Wishlist feature: Enabling users to save products for later.
- Dynamic updates: Real-time updates for item counts, cart contents, and wishlist items.
- Local Storage: Storing cart data locally in the browser's storage for persistence.
- Context API: Sharing global data, such as user preferences or theme settings, across components.
- Active navigation: Enhancing user experience by highlighting the current page.
- Icon usage: Improving the visual appeal of the website.
- Toast notifications: Providing visual feedback to the user.
-
Clone the repository:
git clone [https://github.com/AnisulHaqueNiloy/React-Based-E-Commerce-Platform.git](https://github.com/AnisulHaqueNiloy/React-Based-E-Commerce-Platform.git)
-
Navigate to the project directory:
cd React-Based-E-Commerce-Platform -
Install dependencies:
npm install # or yarn install -
Start the development server:
npm start # or yarn start -
Open the application: The application should now be running at
http://localhost:3000(or a similar address displayed in your terminal). Open this address in your web browser.