This guide will help you set up and run the RED-EYE LEAD HUNTER project on your local machine for development and testing.
Before you begin, ensure you have the following installed:
- Node.js (v18.0.0 or higher)
- npm or Bun (Recommended for faster installs)
- Google Chrome (For testing the extension)
The web application is built with React, Vite, and Tailwind CSS.
Open your terminal in the root directory of the project and run:
# Using Bun (Recommended)
bun install
# OR using npm
npm installRun the following command to start the local development server:
# Using Bun
bun run dev
# OR using npm
npm run devOnce started, you can access the application at:
👉 http://localhost:5173
The extension interacts directly with Google Maps to harvest leads.
- Open Google Chrome.
- Navigate to
chrome://extensions/. - Enable "Developer mode" (toggle switch in the top-right corner).
- Click the "Load unpacked" button.
- Select the
extensionfolder inside theRED-EYE-LEAD-HUNTERdirectory. - The RED EYE icon should now appear in your extension toolbar.
Tip
To test the extension, go to Google Maps and search for a business. The RED EYE panel will automatically inject into the page.
To create a production-ready build of the web application:
# Using Bun
bun run build
# OR using npm
npm run buildThe optimized files will be generated in the dist/ directory.
The project uses Vitest for unit testing.
# Run tests once
npm run test
# Run tests in watch mode
npm run test:watchsrc/: React application source code.extension/: Chrome Extension source code (Background, Content, Popup).public/: Static assets for the web app.dist/: Production build output (generated after running build).
- Port 5173 is busy: Vite will automatically try the next available port (e.g., 5174). Check the terminal output for the correct URL.
- Extension not appearing: Ensure you are on a
google.com/mapsURL, as the content script is configured to only run there. - Dependencies issues: Try deleting
node_modulesand the lock file (bun.lockborpackage-lock.json) and reinstalling.
Developed by MD SAMIUR RAHMAN TANIM
Vibe Coding for Efficiency