A modern e-commerce platform built with React, TypeScript, and Tailwind CSS, featuring product search and detailed product views.
- 🔍 Real-time product search with partial matching
- 📱 Responsive design that works on all devices
- 🎨 Modern UI with smooth transitions
- 🛍️ Detailed product views
- 🔄 Loading states and error handling
- 📣 Toast notifications for user feedback
- Node.js 18.0.0 or higher
- npm 9.0.0 or higher
- Clone the repository
- Install dependencies:
npm install- Start the development server:
npm run devsrc/
├── components/ # Reusable UI components
├── context/ # React Context providers
├── data/ # Mock data and constants
├── pages/ # Page components
└── types/ # TypeScript type definitions
ProductsPage: Main product listing and search pageProductDetailPage: Detailed view of individual productsSearchBar: Search input with real-time filteringProductGrid: Responsive grid layout for product cardsProductCard: Individual product display component
- React 18
- TypeScript
- Tailwind CSS
- React Router
- Lucide React Icons
- React Hot Toast
npm run dev: Start development servernpm run build: Build for productionnpm run preview: Preview production buildnpm run lint: Run ESLint
The project uses ESLint and TypeScript for code quality and type safety. Configuration can be found in:
eslint.config.jstsconfig.json
- Real-time search functionality
- Partial matching on product names and brands
- Loading states during search
- URL-based search parameters
- Comprehensive product information
- High-resolution product images
- Related specifications and features
- Back navigation to search results
- Responsive grid layouts
- Loading skeletons
- Error handling with toast notifications
- Smooth page transitions