A full-stack e-commerce application built with React, Redux Toolkit, and modern web technologies. ShopHub provides a seamless shopping experience with a clean, responsive design and powerful features for both customers and administrators.
Backend-Repo => https://github.com/RahulGurav82/Ecommerce-Backend
- Product Browsing: Browse products with advanced filtering and search capabilities
- Product Details: Detailed product pages with images, descriptions, and customer reviews
- Shopping Cart: Add/remove items with real-time cart updates
- User Authentication: Secure registration and login system
- Payment Integration: Seamless checkout with Razorpay payment gateway
- Order Management: Track order history and status
- Customer Reviews: Rate and review products
- Responsive Design: Optimized for desktop, tablet, and mobile devices
- Product Management: Add, edit, and delete products
- Order Management: View and manage customer orders
- User Management: Monitor user accounts and activities
- Dashboard Analytics: Sales insights and performance metrics
- Modern Design: Clean and intuitive interface using shadcn/ui components
- Dark/Light Theme: Toggle between themes with next-themes
- Smooth Animations: Enhanced user experience with Framer Motion
- Toast Notifications: Real-time feedback using Sonner
- Loading States: Skeleton loaders and loading indicators
Visit the live application: ShopHub
Modern, responsive home page with featured products and intuitive navigation
Modern, responsive admin page with featured products and orders navigation
- React 19 - Modern React with latest features
- Redux Toolkit - State management
- React Router DOM - Client-side routing
- Tailwind CSS 4 - Utility-first CSS framework
- shadcn/ui - High-quality React components
- Framer Motion - Smooth animations and transitions
- Axios - HTTP client for API calls
- ShadCN UI - Accessible component primitives
- Lucide React - Beautiful icons
- Sonner - Toast notifications
- React Motion - Animation
- Vite - Fast build tool and dev server
- ESLint - Code linting
- TypeScript Support - Type-safe development
- Node.js (v18 or higher)
- npm or yarn package manager
git clone https://github.com/RahulGurav82/Ecommerce-frontend
cd Ecommerce-frontend
npm install
# or
yarn install
Create a .env
file in the root directory:
VITE_BASE_URL=http://localhost:5000
npm run dev
# or
yarn dev
The application will be available at http://localhost:5173
npm run build
# or
yarn build
npm run preview
# or
yarn preview
src/
βββ components/ # Reusable UI components
β βββ ui/ # shadcn/ui components
β βββ common/ # Common components
β βββ features/ # Feature-specific components
βββ pages/ # Application pages/routes
βββ store/ # Redux store configuration
β βββ slices/ # Redux slices
β βββ api/ # API service layers
βββ hooks/ # Custom React hooks
βββ utils/ # Utility functions
βββ lib/ # Library configurations
βββ assets/ # Static assets
npm run dev
- Start development servernpm run build
- Build for productionnpm run preview
- Preview production buildnpm run lint
- Run ESLint
ShopHub uses Tailwind CSS 4 with a custom design system:
- Typography: Optimized font scales and spacing
- Components: Consistent component library with shadcn/ui
- Responsive Design: Mobile-first approach
- JWT-based authentication
- Protected routes for authenticated users
- Role-based access control (Customer/Admin)
- Secure API communication
ShopHub is fully responsive and optimized for:
- π± Mobile devices (320px+)
- π Tablets (768px+)
- π» Laptops (1024px+)
- π₯οΈ Desktops (1280px+)
- Code Splitting: Route-based code splitting
- Lazy Loading: Components and images loaded on demand
- Bundle Optimization: Minimized bundle size with Vite
- Caching: Efficient API response caching
- Image Optimization: Responsive images with proper formats
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- shadcn/ui for the beautiful component library
- Radix UI for accessible component primitives
- Vercel for seamless deployment
- React and Vite communities for excellent tooling
If you have any questions or run into issues, please:
- Open an issue on GitHub
- Check the documentation
- Contact the development team
Built with β€οΈ using React and modern web technologies
View Live Demo β’ Get Started β’ Contribute