Skip to content

Repository files navigation

Best on Click - Pure Web E-commerce Application

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.

Core Features

  • 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.

Project Setup and Installation

Follow these steps to get the project running locally for development.

Prerequisites

  • Node.js 16+ (for development tools only)
  • npm or yarn package manager
  • Modern web browser (Chrome, Firefox, Safari, Edge)

1. Clone the Repository

```bash git clone cd best-on-click ```

2. Install Development Dependencies

Install the development tools needed for Tailwind CSS compilation:

```bash npm install ```

3. Build CSS (Optional)

If you want to customize the Tailwind CSS:

```bash npm run build:css ```

4. Run the Development Server

Start a local development server:

```bash npm run dev ```

The application will be running at http://localhost:3000/.

5. Alternative: Direct File Access

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.

Project Structure

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

Features

  • 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

Technology Stack

  • 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

Browser Support

  • Chrome 60+
  • Firefox 60+
  • Safari 12+
  • Edge 79+

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages