Skip to content

Latest commit

Β 

History

History
93 lines (59 loc) Β· 2.27 KB

File metadata and controls

93 lines (59 loc) Β· 2.27 KB

πŸ›’ 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

  1. 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.title}

{product.title}

${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.