An AI-powered sustainable shopping assistant that empowers users to make eco-friendly purchasing decisions, calculate carbon footprints, and discover zero-waste stores nearby.
- AI Product Analysis: Snap a photo of a product, and our Gemini-powered AI calculates its Eco-Score, carbon footprint, water usage, and suggests a greener alternative.
- Eco-Score Leaderboard: Gamify sustainability! Track your environmental impact and compete with friends.
- Transaction History: Visualize your positive environmental impact over time with stunning charts.
- Zero-Waste Store Finder: An integrated Google Maps interface to find nearby ethical shops, refill stations, and eco-friendly markets. (Dynamic fallback included for demo purposes).
| Dashboard & Tracking | AI Product Scanner |
|---|---|
![]() |
![]() |
| Community Feed | Eco-friendly Maps |
|---|---|
![]() |
![]() |
Frontend:
- Vite + React + TypeScript
- Tailwind CSS & Framer Motion for premium aesthetics
- Shadcn UI & Lucide Icons
- Google Maps JavaScript API
Backend:
- Node.js & Express.js
- MongoDB & Mongoose
- Google Generative AI (Gemini 2.5 Flash)
- JWT Authentication
-
Clone the repository:
git clone https://github.com/Omkarop0808/GreenHack.git cd GreenHack -
Install dependencies:
# Install backend dependencies cd backend && npm install # Install frontend dependencies cd ../frontend && npm install
-
Configure Environment Variables:
- Add
.envinbackend/withMONGO_URI,JWT_SECRET,GEMINI_API_KEY - Add
.envinfrontend/withVITE_GOOGLE_MAPS_API_KEY
- Add
-
Run Locally:
- Backend:
npm start - Frontend:
npm run dev
- Backend:
This project is configured as a Monorepo for easy deployment on Vercel:
- Vercel handles the Frontend via
@vercel/vite. - Vercel automatically deploys the Backend Express app as Serverless Functions (
@vercel/node) viavercel.jsonrewrites.



