A React application that simulates the core shopping experience of Amazon, built with React and Vite.
- Product Catalog: Display products with images, titles, and prices
- Star Ratings: Allow users to rate products and view average ratings
- Shopping Cart: Add products to cart with quantity selection
- Cart Management: Edit quantities or remove items from cart
- Search Functionality: Filter products by name
- Prime Membership Indicator: Display Prime status for products
- Modern UI: Amazon-inspired user interface
- React 19
- Vite 6
- React Icons
- CSS for styling
- Node.js (version 18 or higher recommended)
- npm or yarn
- Clone the repository
- Install dependencies
npm install
Start the development server:
npm run dev
Create a production build:
npm run build
npm run preview
src/App.jsx
: Main application component with state managementsrc/Header.jsx
: Navigation bar with logo, search, and cartsrc/Product.jsx
: Individual product display with buy functionalitysrc/ShowCartItems.jsx
: Cart items display and managementsrc/StarRating.jsx
: Reusable star rating componentsrc/Carousel.jsx
: Product image carouselsrc/hooks/
: Custom React hooks
MIT