Skip to content

Nitish2773/NxtTrendzApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


NxtTrendz Shopping Cart Website

πŸš€ Live Demo

Click here to experience NxtTrendz

NxtTrendz is a next-generation e-commerce platform designed to provide users with a seamless and engaging online shopping experience. With a sleek interface, intuitive navigation, and advanced features, shopping has never been easier.


✨ Key Features

  • πŸ›’ Shopping Cart – Effortlessly add, remove, and update product quantities.
  • πŸ” Search Functionality – Quickly locate products with a responsive search bar.
  • 🏷 Category Browsing – Browse through different product categories (electronics, fashion, home goods, etc.).
  • πŸ”„ Filtering & Sorting – Apply filters (price range, brand) and sort by price, popularity, or ratings.
  • πŸ“„ Product Details – View detailed product information, including description, availability, pricing, and reviews.
  • πŸ”— Similar Products – Discover related products based on your selected item.

🎨 Responsive Design

NxtTrendz is designed to be fully responsive across all devices. Below are design previews for different screen sizes:

  • πŸ“± Small Screens (<576px):
    Small Screen

  • πŸ’» Medium to Large Screens (β‰₯768px):
    Large Screen


⚑ Getting Started

Follow these steps to set up and run the project locally:

1️⃣ Prerequisites

Ensure you have the following installed on your machine:

  • Node.js
  • npm (Node Package Manager)

2️⃣ Installation

Clone the repository and install dependencies:

npm install

3️⃣ Running the App

Start the development server:

npm start

The application will run at http://localhost:3000/.


πŸ› Features to Implement

πŸ” Authentication & Cart Access

  • Users must log in before accessing the cart. Unauthenticated users will be redirected to the Login page.

πŸ›’ Cart Functionalities

  • Adding the same product multiple times increases its quantity instead of duplicating it.
  • The Cart Route displays the total amount and item count.
  • Item Quantity Controls:
    • Clicking + increases the quantity.
    • Clicking βˆ’ decreases the quantity (removes the item if quantity is 1).
    • Remove button deletes an item from the cart.
    • Remove All button clears the entire cart.
  • The product price and Cart Summary update dynamically.

πŸ— Cart Context Methods

The following methods manage cart operations:

cartList // Stores cart items
removeAllCartItems() // Clears all items from the cart
addCartItem(item) // Adds an item to the cart
removeCartItem(id) // Removes an individual item
incrementCartItemQuantity(id) // Increases item quantity
decrementCartItemQuantity(id) // Decreases item quantity

πŸ› Components Structure

To understand the component architecture, refer to the image below:

Component Structure


πŸ“‚ Implementation Files

The following files need updates or creation:

  • src/App.js
  • src/components/Cart/index.js
  • src/components/Cart/index.css
  • src/components/CartItem/index.js
  • src/components/CartItem/index.css
  • src/components/CartSummary/index.js
  • src/components/CartSummary/index.css

πŸ’‘ Quick Tips

CSS – Line Height

Use line-height to control text spacing:

line-height: 1.5;

JavaScript – Array find() Method

Retrieve a specific item from an array:

const item = arr.find(item => item.name === 'Product');

🎨 UI Elements & Icons

  • Icons (react-icons):

    • βž• Plus: BsPlusSquare
    • βž– Minus: BsDashSquare
    • ❌ Remove: AiFillCloseCircle
  • Test IDs:

    • plus and minus for cart item quantity buttons.
    • remove for the remove button.

πŸ›‘ User Credentials (For Testing)

πŸ”‘ Prime User

  • Username: rahul
  • Password: rahul@2021

πŸ”‘ Non-Prime User

  • Username: nitish
  • Password: nitish@2021

🎨 Design Guidelines

🎨 Colors Used

  • #0b69ff #0b69ff
  • #171f46 #171f46
  • #616e7c #616e7c
  • #ffffff #ffffff

πŸ–‹ Font Used

  • Roboto

About

NxtTrendz is a feature-rich e-commerce platform offering a seamless shopping experience. With functionalities like Add to Cart, Search, Category Browsing, Filtering, and Sorting, users can easily find and manage products.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors