A modern, responsive e-commerce website built with vanilla JavaScript, featuring real-time shopping cart functionality, user authentication, and a seamless shopping experience.
-
Product Management
- Dynamic product catalog
- Quick view functionality
- Advanced filtering and sorting
- Product categories
- Flash sales with countdown timer
-
Shopping Features
- Real-time shopping cart
- Wishlist functionality
- Secure checkout process
- Order history
-
User Features
- User authentication
- Profile management
- Responsive design
- Local storage persistence
- HTML5
- CSS3 with Tailwind CSS
- Vanilla JavaScript
- ScrollReveal.js for animations
- Local Storage for data persistence
- Firebase for authentication
exclusive_ecommerce/
├── dist/ # Production build output
├── public/ # Public assets
│ └── imgs/ # Static images
├── pages/ # HTML pages
│ ├── cart.html
│ ├── login.html
│ ├── sign-up.html
│ ├── profile.html
│ ├── wish-list.html
│ ├── about.html
│ ├── contact.html
│ ├── checkout.html
│ ├── all-products.html
│ └── product-details.html
├── src/ # Source files
│ ├── js/ # JavaScript modules
│ │ ├── firebase.js
│ │ ├── main.js
│ │ ├── home.js
│ │ ├── cart.js
│ │ ├── login.js
│ │ ├── sign-up.js
│ │ ├── profile.js
│ │ ├── wish-list.js
│ │ ├── checkout.js
│ │ ├── all-products.js
│ │ ├── product-details.js
│ │ └── fetch-products.js
│ └── style/ # CSS files
│ ├── input.css # Tailwind CSS input file
│ └── style.css # Compiled CSS file
├── index.html # Main entry point
├── package.json # Project metadata and dependencies
├── vite.config.js # Vite configuration
└── README.md # Project documentation
- Clone the repository:
git clone https://github.com/Kimo-Mo/Exclusive-ecommerce.git- Install dependencies:
npm install- Run the build process:
npm run build- Start the development server:
npm run previewModify src/style/input.css for styling changes:
:root {
--primary-color: #bc3939;
--hover-btn-color: #963232;
// ...other variables
}Add new products in src/js/products.json:
{
"id": 1,
"title": "Product Name",
"price": 99.99,
"image": "path/to/image.jpg"
// ...other properties
}- Mobile-first approach
- Breakpoints:
- Mobile: < 768px
- Tablet: 768px - 1024px
- Desktop: > 1024px
- Firebase Authentication for secure user login and registration
- Email and password-based authentication
- Real-time authentication state monitoring
- Protected routes for profile, checkout, and other user-specific pages
- Error handling for invalid credentials, weak passwords, and other authentication issues
- User profile updates, including email and password changes
- Real-time updates
- Quantity management
- Price calculations
- Persistent storage
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Kareem Mohamed - in/Kareem-dev
