<<<<<<< HEAD
A modern, responsive e-commerce platform built with React, featuring a clean design, smooth animations, and excellent user experience across all devices.
- Clean, professional UI with smooth animations
- Responsive design that works on all devices
- Modern color scheme with primary green theme
- Beautiful hover effects and transitions
- Mobile-first design approach
- Optimized for tablets, desktops, and mobile devices
- Touch-friendly interface for mobile users
- Adaptive navigation menu
- Product browsing and search
- Shopping cart functionality
- Wishlist management
- User authentication and registration
- Order management
- Product categories and brands
- Product details with image gallery
- Fast loading with Vite build tool
- Optimized images with lazy loading
- Efficient state management with Context API
- React Query for server state management
- Modern React with hooks
- TypeScript-ready codebase
- ESLint configuration
- Hot module replacement
- Component-based architecture
- React 18 - Modern React with hooks
- Vite - Fast build tool and dev server
- React Router DOM - Client-side routing
- Tailwind CSS - Utility-first CSS framework
- Swiper.js - Modern slider/carousel
- Formik + Yup - Form handling and validation
- React Query - Server state management
- React Hot Toast - Beautiful notifications
- Font Awesome - Icon library
- React Helmet - Document head management
- React Image Gallery - Image gallery component
- ESLint - Code linting
- PostCSS - CSS processing
- Autoprefixer - CSS vendor prefixes
- Node.js (version 16 or higher)
- npm or yarn package manager
-
Clone the repository
git clone <repository-url> cd e-commerce
-
Install dependencies
npm install # or yarn install -
Start the development server
npm run dev # or yarn dev -
Open your browser Navigate to
http://localhost:5173to view the application.
src/
βββ Components/ # Reusable UI components
β βββ Card/ # Product card component
β βββ CategorySlider/ # Category carousel
β βββ Footer/ # Footer component
β βββ HomeSlider/ # Hero slider
β βββ Layout/ # Main layout wrapper
β βββ Loading/ # Loading states
β βββ Navbar/ # Navigation bar
βββ Pages/ # Page components
β βββ Home/ # Homepage
β βββ Login/ # Login page
β βββ Signup/ # Registration page
β βββ ProductDetails/ # Product detail page
β βββ Cart/ # Shopping cart
β βββ WishList/ # User wishlist
β βββ ...
βββ context/ # React Context providers
β βββ User.context.jsx
β βββ Cart.context.jsx
β βββ WishList.context.jsx
β βββ Products.context.jsx
βββ hooks/ # Custom React hooks
βββ assets/ # Static assets
β βββ images/ # Image files
βββ main.jsx # Application entry point
- Primary: Green (#0aad0a) - Main brand color
- Secondary: Gray tones for text and backgrounds
- Success: Green variants for success states
- Error: Red for error states
- Warning: Yellow for warning states
- Font Family: Encode Sans Expanded
- Font Weights: 400, 500, 600, 700, 800, 900
- Cards: Rounded corners, subtle shadows, hover effects
- Buttons: Multiple variants (primary, secondary, outline)
- Forms: Clean inputs with focus states
- Navigation: Responsive menu with smooth transitions
- Mobile: 320px - 639px
- Tablet: 640px - 1023px
- Desktop: 1024px - 1279px
- Large Desktop: 1280px+
# Development
npm run dev # Start development server
# Production
npm run build # Build for production
npm run preview # Preview production build
# Code Quality
npm run lint # Run ESLintThe application integrates with the E-commerce API from RouteMisr:
- Base URL:
https://ecommerce.routemisr.com/api/v1 - Authentication: JWT token-based
- Features: Products, Categories, Brands, Cart, Wishlist, Orders
npm run build# Install Vercel CLI
npm i -g vercel
# Deploy
vercel# Build the project
npm run build
# Deploy the 'dist' folder to Netlify- 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.
- Your Name - Initial work - YourGitHub
- RouteMisr for providing the e-commerce API
- Tailwind CSS for the amazing CSS framework
- Swiper.js for the slider functionality
- React Query for server state management
If you have any questions or need help, please:
- Open an issue on GitHub
- Contact us at [your-email@example.com]
- Join our community discussions
This project is a modern E-Commerce web application built with cutting-edge technologies to provide a seamless online shopping experience. The platform features a user-friendly interface, responsive design, and powerful backend integration.
- User Authentication: Secure login and registration system.
- Product Listings: Dynamic and visually appealing product gallery.
- Search and Filters: Advanced search functionality with filters.
- Shopping Cart: Add, update, and remove items from the cart.
- Order Management: Place and track orders effortlessly.
- Offline Detection: Notifies users when offline.
- Responsive Design: Optimized for mobile, tablet, and desktop.
- Real-Time Notifications: Toast notifications for important events.
- React: Building a dynamic and responsive user interface.
- React Router DOM: Client-side routing for seamless navigation.
- React Query: Data fetching and caching.
- Formik: Simplified form handling.
- Yup: Form validation.
- React Toastify & React Hot Toast: User-friendly notifications.
- Swiper: Interactive product carousels.
- React Helmet: Manage document head for SEO.
- Tailwind CSS: Utility-first CSS framework for responsive design.
- Font Awesome: Icons for UI enhancement.
- Fontsource: Custom fonts for typography.
- Axios: API requests and data handling.
- JWT Decode: Authentication token handling.
- Vite: Fast build tool and development server.
- ESLint: Code quality and linting.
- PostCSS: CSS transformations.
-
Clone the Repository:
git clone https://github.com/elref7i/E-commerce.git cd E-commerce -
Install Dependencies:
npm install
-
Run the Development Server:
npm run dev
-
Build for Production:
npm run build
-
Preview Production Build:
npm run preview
E-commerce/
βββ src/
β βββ components/ # Reusable UI components
β βββ pages/ # Application pages
β βββ hooks/ # Custom React hooks
β βββ utils/ # Helper functions
β βββ assets/ # Static files (images, fonts)
βββ public/ # Public assets
βββ package.json # Project metadata and dependencies
βββ tailwind.config.js # Tailwind CSS configuration
Contributions are welcome! Please fork the repository and submit a pull request for any enhancements or bug fixes.
This project is licensed under the MIT License.
For any inquiries or feedback, please reach out to elref7i.
68ee2dddb0e88b68c9087eb28b885edf60628efd