A modern and elegant ecommerce frontend built with React, Vite, TailwindCSS, and Zustand.
- 🎨 Modern, elegant UI with smooth animations
- 🛍️ Product browsing with category filters
- 🛒 Shopping cart with persistent state
- 🔐 User authentication
- 📱 Fully responsive design
- ⚡ Fast performance with Vite
- React 18 - UI library
- Vite - Build tool
- TailwindCSS - Styling
- Zustand - State management
- React Router - Navigation
- Fake Store API - Backend API
npm installnpm run devVisit http://localhost:5173 to view the app.
npm run buildnpm run preview- Username: mor_2314
- Password: 83r5^_
src/
├── components/ # Reusable UI components
├── pages/ # Page components
├── services/ # API service layer
├── store/ # Zustand store
├── utils/ # Utility functions
├── App.jsx # Main app component
├── main.jsx # Entry point
└── index.css # Global styles
GET /products- Get all productsGET /products/:id- Get single productGET /carts- Get all cartsGET /carts/:id- Get single cartPOST /auth/login- User login
- Grid layout with responsive design
- Category-based filtering
- Product cards with hover effects
- Quick add to cart functionality
- Full product information
- Quantity selector
- Add to cart with custom quantity
- Back navigation
- View cart items
- Update quantities
- Remove items
- Order summary with tax calculation
- Persistent cart state
- Login form with validation
- JWT token management
- User session persistence
- Protected routes
MIT