This repository contains the complete source code for the "Best on Click" e-commerce application. It is built using pure web technologies (HTML5, CSS3, and Vanilla JavaScript) with Tailwind CSS for styling, featuring a modern, responsive design and advanced functionality including user behavior tracking and AI integration hooks.
- Pure Web Technologies: Built with HTML5, CSS3, and Vanilla JavaScript - no frameworks required.
- Modern Design: Responsive design using Tailwind CSS with custom components.
- Client-Side Routing: Custom hash-based routing system for single-page application experience.
- State Management: Simple, effective state management with localStorage persistence.
- User Behavior Tracking: Built-in analytics and behavior tracking system.
- API Integration: Ready for backend integration with comprehensive API service layer.
- Component Architecture: Modular component system for maintainability.
- Progressive Enhancement: Works without JavaScript, enhanced with JavaScript features.
Follow these steps to get the project running locally for development.
- Node.js 16+ (for development tools only)
- npm or yarn package manager
- Modern web browser (Chrome, Firefox, Safari, Edge)
```bash git clone cd best-on-click ```
Install the development tools needed for Tailwind CSS compilation:
```bash npm install ```
If you want to customize the Tailwind CSS:
```bash npm run build:css ```
Start a local development server:
```bash npm run dev ```
The application will be running at http://localhost:3000/.
You can also open public/index.html directly in your browser for basic functionality, though some features may require a local server due to CORS restrictions.
best-on-click/
├── public/ # Main application directory
│ ├── index.html # Entry point
│ ├── css/ # Compiled CSS
│ ├── js/ # JavaScript modules
│ │ ├── components/ # Reusable UI components
│ │ ├── pages/ # Page components
│ │ ├── services/ # API and utility services
│ │ ├── state/ # State management
│ │ └── utils/ # Helper functions
│ └── assets/ # Images and static files
├── styles/ # Source CSS files
├── package.json # Dependencies and scripts
└── tailwind.config.js # Tailwind configuration
- Responsive Design: Works on desktop, tablet, and mobile devices
- Modern UI: Clean, professional design with smooth animations
- User Authentication: Login/logout functionality with session persistence
- Product Catalog: Browse products with filtering and search
- Shopping Cart: Add/remove items with persistent cart state
- User Dashboard: Role-based dashboards for different user types
- Behavior Analytics: Track user interactions for insights
- API Ready: Structured for easy backend integration
- HTML5: Semantic markup and modern web standards
- CSS3: Advanced styling with Flexbox and Grid
- Tailwind CSS: Utility-first CSS framework
- Vanilla JavaScript: ES6+ modules and modern JavaScript features
- Web APIs: localStorage, fetch, and other standard browser APIs
- Chrome 60+
- Firefox 60+
- Safari 12+
- Edge 79+
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is licensed under the MIT License.