Comparison Tool

CompareSphere is a modern MERN-stack web utility designed to simplify consumer shopping by gathering unstructured product details and organizing them into a unified, side-by-side comparison matrix. It separates access levels between standard users and system administrators, allowing visitors to inspect public layouts and forcing authentication when invoking comparison matrices.

Comparison Img 1
Comparison Img 2
Comparison Img 3
Comparison Img 4
Comparison Img 5
Comparison Img 6
  • Dual User and Admin authorization access levels
  • Strict database check allowing only one Admin account registration
  • Unified side-by-side product specifications grid
  • Automatic green highlight for lowest-priced items in comparison
  • Unrestricted guest browsing for static informational pages.
  1. Admin panel console with dynamic subfield spec row additions
  2. Fast catalog query filtering by text search and category
  3. Route guarding for secure matrices and dashboard profiles
  4. Admin controls to list and remove regular user databases
  5. Instant sample catalog seeding button for rapid testing.
  • Frontend: React.js, Tailwind CSS v4, React Icons, React Hot Toast
  • Backend: Node.js, Express.js
  • Database: MongoDB (Mongoose Object Modeling)
  • Authentication: JSON Web Tokens (JWT) & bcryptjs (password hashing)
  • Eliminates tab-switching analysis paralysis during online shopping
  • Streamlines unstructured product specs into a matching grid
  • Secures administration catalog data from unauthorized changes
  • Identifies the lowest price and best bargains in real-time
  • Reduces system configuration setup overhead with seed engines.
  1. Environment Variables Setup:
    • backend/.env
      • PORT: 3000
      • MONGO_URI: mongodb_url_string
      • JWT_SECRET: your_jwt_secret_key_here (if needed)
    • frontend/.env
      • VITE_API_URL: backend_url
  2. Deployment Overview:
    • Render or Railway for backend hosting
    • Vercel or Netlify for frontend hosting
    • MongoDB Atlas for the database
  3. Backend Deployment:
    • Push your code to GitHub.
    • Go to Render.com or Railway.app.
    • Create a new Web Service and connect your GitHub repository.
    • Choose “backend/” as the root directory.
    • Add the following environment variables on Render:
    • PORT=10000
    • MONGO_URI=your MongoDB Atlas URI
    • JWT_SECRET=your JWT secret
    • Start command: npm start (Ensure your backend/package.json includes “start”: “node server.js”)
    • After deployment, note your backend URL, e.g. https://your-backend-name.onrender.com
  4. Frontend Deployment:
    • Go to Vercel.com or Netlify.com.
    • Create a new project and connect the GitHub repo.
    • Select the “frontend/” folder as root.
    • In environment variables, set:
    • VITE_API_URL=https://your-backend-domain.com/api (or REACT_APP_API_URL if using CRA)
    • Deploy.
  5. MongoDB Atlas Setup:
    • Go to https://cloud.mongodb.com
    • Create a free cluster.
    • Add your current IP address in Network Access.
    • Create a database user and password.
    • Copy the connection string and replace username, password, and database name in MONGO_URI in backend/.env

Note: This project is for educational purposes only. Not for commercial sale.