A modern product browsing application built with React, Redux, and Vite.
The project provides a clean shopping flow where users can browse products, manage a cart, and maintain a favorites list.
This application fetches product data from the DummyJSON API and renders it in a responsive, Tailwind-powered interface.
State for cart and favorites is managed globally using Redux.
- Browse products fetched from
https://dummyjson.com/products - Add and remove items from cart
- Increase or decrease item quantity in cart
- Clear the full cart in one action
- Add and remove products from favorites
- View total cart amount calculation in real time
- Navigate between Home, Product, Cart, and Favorite pages
- React 19
- Redux + React Redux
- React Router
- Vite
- Tailwind CSS v4
- Axios
- ESLint
src/
components/ Reusable UI pieces (card, nav, footer)
layout/ Shared page layout
pages/ Route-level pages (home, product, cart, favorite)
router/ Route configuration
store/
action/ Redux action creators
reducer/ Redux reducers
store.js Redux store setup
- Node.js 18+ recommended
- npm
npm installnpm run devnpm run buildnpm run previewRun lint checks with:
npm run lint/→ Home page/product→ Product listing/cart→ Shopping cart/favorite→ Favorites list
- Product data is loaded from the public DummyJSON service.
- Cart quantity controls respect product stock limits.
- Favorites prevent duplicate entries for the same product.