🚀 Price Comparison Web
Smart price comparison tool across multiple e-commerce platforms to find the best deals
A modern, responsive web application that helps users compare product prices across multiple e-commerce platforms including Amazon, Flipkart, Myntra, Paytm, and others. Built with React and Node.js, this tool provides real-time price comparisons, automatic discount detection, and intelligent search functionality to help users make informed purchasing decisions.
✨ Features
- 🔍 Smart Product Search - Intelligent search with real-time results across platforms
- 💰 Multi-Platform Price Comparison - Compare prices from Amazon and Flipkart
- 🏷️ Automatic Deal Detection - Real-time discount calculation and offer highlighting
- 📱 Responsive Design - Optimized for desktop, tablet, and mobile devices
- ⚡ Fast Loading - Efficient API calls with loading states and error handling
- 🔄 Pagination Support - Smooth navigation through large product catalogs
- 🎯 Direct Purchase Links - One-click redirection to retailer websites
- 🚀 Real-time Updates - Live price and availability information
- 🛒 Product Details - Comprehensive product information with images and specifications
- 📊 Price Analytics - Historical price trends and best deal recommendations
🛠️ Tech Stack
React
Node.js
Express.js
JavaScript
Axios
Cheerio
React Router DOM
CSS3
CORS
Vercel
REST API
Web Scraping
⚙️ Technical Details
- Framework: React with React Router DOM for client-side routing
- Styling: Custom CSS3 with responsive design principles
- Deployment: Vercel serverless deployment with custom domain
🚀 Getting Started
Prerequisites
- Node.js (v14 or higher)
- npm or yarn package manager
- Git for version control
Installation
Clone the repository: `git clone https://github.com/adarsh3699/price-comparison-web.git`
Navigate to project directory: `cd price-comparison-web`
Install backend dependencies: `cd backend && npm install`
Install frontend dependencies: `cd ../frontend && npm install`
Start backend server: `cd backend && npm run dev` (runs on port 10000)
Start frontend development server: `cd frontend && npm start` (runs on port 3000)
Open http://localhost:3000 to view the application
🔐 Environment Variables
| Variable | Description | Required |
|---|
| API_BASE_URL | Base URL for the backend API endpoint | Required |
| CORS_ALLOWLIST | Comma-separated list of allowed domains for CORS | Required |
🔗 Links
🌐 Live Demo
Experience the application live at https://comparison.bhemu.in
Simply search for any product to see real-time price comparisons across multiple e-commerce platforms. The first API call may take longer on free hosting platforms.
📡 API Documentation
Search Products: GET /?search={query}&page={page}
Get Product URL: GET /product/{productId}
Base URLs:
- Production:
https://api-comparison.bhemu.in/
- Development:
http://localhost:10000/
🏗️ Project Architecture
Frontend: React 18 SPA with component-based architecture
Backend: Express.js API server with web scraping capabilities
Data Flow: Real-time API calls → Cheerio parsing → React state management
Deployment: Vercel serverless functions with automatic scaling
✨ Key Features
Multi-Platform Support: Amazon and Flipkart integration
Real-time Data: Live price updates and availability status
Smart Search: Intelligent query processing with pagination
Mobile First: Responsive design for all screen sizes
Performance: Optimized API calls with caching and error handling