Skip to content

paras941/shopperx-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

71 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

ShopperX ๏ฟฝ๏ธ

React Vite JavaScript CSS3

A feature-rich, modern e-commerce web application built with React

๐ŸŒ Live Demo โ€ข ๐Ÿ“‹ Features โ€ข ๐Ÿš€ Getting Started โ€ข ๐Ÿ“ธ Screenshots


โœจ Overview

ShopperX is a fully functional e-commerce frontend application showcasing professional-grade React development. Built with modern best practices, it demonstrates real-world implementation of state management, routing, authentication flows, and responsive UI design โ€” perfect for portfolios and technical interviews.


๐ŸŽฏ Features

๐Ÿ›’ Shopping Experience

  • Product Catalog โ€” Browse products by category (Men, Women, Kids)
  • Product Search โ€” Real-time search functionality with instant results
  • Quick View Modal โ€” Preview products without leaving the page
  • Product Details โ€” Comprehensive product pages with size selection & quantity controls
  • Related Products โ€” Smart product recommendations

๐Ÿ’ Wishlist System

  • Save Favorites โ€” Add/remove products to your wishlist
  • Persistent Wishlist โ€” Wishlist count displayed in navbar
  • Dedicated Wishlist Page โ€” Manage all saved items in one place

๐Ÿ›๏ธ Cart & Checkout

  • Smart Cart โ€” Add, remove, update quantities
  • Cart Summary โ€” Real-time price calculations
  • Empty Cart State โ€” Beautiful UI for empty cart
  • Checkout Flow โ€” Complete checkout page with order summary

๐Ÿ‘ค User Authentication

  • Login/Signup โ€” Toggle between login and signup modes
  • Form Validation โ€” Real-time input validation with error messages
  • User Profile Dropdown โ€” Quick access to account features
  • Social Login UI โ€” Google sign-in button (UI ready)

๐Ÿ”” User Experience

  • Toast Notifications โ€” Elegant success/error/info messages
  • Smooth Animations โ€” CSS transitions & hover effects throughout
  • Scroll Management โ€” Smart scroll-to-top behavior
  • Responsive Design โ€” Mobile-first, works on all devices

๐Ÿ› ๏ธ Tech Stack

Category Technologies
Framework React 18 with Vite
Routing React Router DOM v6
State Management Context API + useReducer pattern
Styling CSS3 with Flexbox & Grid
Animations CSS Transitions & Keyframes
Build Tool Vite (Lightning fast HMR)
Deployment Vercel

๐Ÿ“‚ Project Architecture

shopperx-web/
โ”œโ”€โ”€ ๐Ÿ“ public/
โ”œโ”€โ”€ ๐Ÿ“ src/
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ assets/              # Images, icons, product data
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ Components/
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿงฉ Navbar/          # Navigation with search & user menu
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿงฉ SearchBar/       # Real-time product search
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿงฉ Hero/            # Landing page banner
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿงฉ Item/            # Product card with quick actions
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿงฉ QuickView/       # Product preview modal
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿงฉ ProductDisplay/  # Detailed product view
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿงฉ CartItems/       # Shopping cart management
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿงฉ Toast/           # Notification system
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿงฉ Popular/         # Popular products section
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿงฉ NewCollections/  # New arrivals section
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿงฉ Offers/          # Promotional banners
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿงฉ Footer/          # Site footer
โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿงฉ ...more
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ Context/
โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ”„ ShopContext.jsx  # Global state (cart, wishlist, auth)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ Pages/
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ Shop.jsx         # Home page
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ ShopCategory.jsx # Category browsing
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ Product.jsx      # Product detail page
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ Cart.jsx         # Shopping cart
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ Wishlist.jsx     # Saved items
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ Checkout.jsx     # Checkout flow
โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ“„ LoginSignUp.jsx  # Authentication
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ App.jsx              # Main app with routing
โ”‚   โ””โ”€โ”€ ๐Ÿ“„ main.jsx             # Entry point
โ”œโ”€โ”€ ๐Ÿ“„ package.json
โ”œโ”€โ”€ ๐Ÿ“„ vite.config.js
โ””โ”€โ”€ ๐Ÿ“„ README.md

โš›๏ธ React Concepts Demonstrated

Concept Implementation Purpose
useState Forms, modals, menus Local component state management
useContext ShopContext Global state for cart, wishlist, auth
useEffect Scroll behavior, toasts Side effects & lifecycle management
useNavigate Post-login redirect Programmatic navigation
useParams Product pages URL parameter extraction
Custom Hooks Context consumers Reusable stateful logic
Conditional Rendering Auth forms, empty states Dynamic UI based on state
Component Composition All components Building complex UIs from simple parts
Props Drilling vs Context Mixed approach Optimal data flow patterns

๐Ÿš€ Getting Started

Prerequisites

  • Node.js 16+
  • npm or yarn

Installation

# Clone the repository
git clone https://github.com/your-username/shopperx-web.git

# Navigate to project directory
cd shopperx-web

# Install dependencies
npm install

# Start development server
npm run dev

The app will be running at http://localhost:5173

Build for Production

npm run build
npm run preview

๐Ÿ“ธ Screenshots

Click to view screenshots

Home Page

Hero section with featured products and categories

Product Catalog

Grid layout with quick view, wishlist, and cart actions

Product Details

Size selection, quantity controls, and related products

Shopping Cart

Full cart management with price summary

Wishlist

Saved items with quick add-to-cart

Authentication

Clean login/signup with form validation


๐Ÿ”ฎ Roadmap

  • Backend API integration (Node.js + MongoDB)
  • Payment gateway (Stripe/Razorpay)
  • Order history & tracking
  • Product reviews & ratings
  • Admin dashboard
  • PWA support

๐Ÿค Contributing

Contributions are welcome! Feel free to:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ‘จโ€๐Ÿ’ป Author

Paras Rawat

GitHub LinkedIn

Full Stack Developer | React Enthusiast | Open Source Contributor


Built with โค๏ธ by Paras Rawat

โญ Star this repo if you found it helpful!

About

UI-first e-commerce web experience built in React, focusing on clean layouts, smooth interactions, and production-style component structure.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors