π Nexton E-Commerce
A fully responsive E-Commerce web app built with React.js, Redux Toolkit, and Tailwind CSS. This project demonstrates modern UI design, smooth state management, and essential shopping features like product search, cart system, and multi-page navigation.
π Features
π§ Redux Toolkit for global state management
ποΈ Add to Cart / Delete from Cart functionality
π Search Products with real-time filtering
π Multi-page navigation using React Router
π± Fully responsive layout built with Tailwind CSS
β‘ Optimized performance & clean component structure
ποΈ Folder Structure
src/ β βββ app/ β βββ store.js # Redux store setup β βββ features/ β βββ cart/ # Cart slice and logic β βββ products/ # Product slice and data β βββ components/ # Reusable UI components βββ pages/ # Multi-page routes (Home, Shop, Cart, etc.) βββ assets/ # Images and static files βββ App.js # Root app component
βοΈ Installation
- Clone the repository
git clone https://github.com/yourusername/nexton-ecommerce.git
π§© Example Code
import { useDispatch } from "react-redux"; import { addToCart } from "../features/cart/cartSlice";
function ProductCard({ product }) { const dispatch = useDispatch(); return (
${product.price}
<button onClick={() => dispatch(addToCart(product))} className="mt-3 bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700" > Add to Cartπ§ Key Concepts
Redux Toolkit for managing cart and product data
Dynamic product rendering using map()
Search filtering with useState and array filter
Reusable components for maintainable codebase
Routing system for page navigation
π§° Built With
React.js
Redux Toolkit
Tailwind CSS
React Router DOM
JavaScript (ES6+)
π License
This project is open-source and available under the MIT License.