CleanBee is a web3-enabled platform that gamifies community-driven waste management. Powered by Next.js and AI technology, CleanBee simplifies environmental cleanup and rewards participants.
- Smart Waste Reporting 📸: Upload waste images, receive AI-powered classification, and earn points.
- Cleanup Management 🗺️: Browse, claim, and verify cleanups, earning points for successful tasks.
- Web3 Integration 🌐: Secure login, transparent point tracking, and future NFT rewards.
- Dashboard Analytics 📊: Track community engagement, cleanup progress, and environmental impact.
- Next.js 14+, Tailwind CSS, shadcn/ui components, Web3Auth, Next-Auth.js
- NeonDB (PostgreSQL), Prisma ORM
- Gemini AI (Waste Classification), Mapbox API, Cloudinary (Image Management)
- TypeScript, ESLint, Prettier, Husky for Git hooks
- Clone the Repository
git clone https://github.com/yourusername/cleanup.git
cd cleanup
- Install Dependencies
npm install
# or
pnpm install
# or
yarn install- Environment Setup
Create a
.env.localfile:
# App
NEXT_PUBLIC_APP_URL=http://localhost:3000
# Database
DATABASE_URL="postgresql://user:password@neon.db.url:5432/cleanbee"
# Authentication
NEXT_PUBLIC_WEB3AUTH_CLIENT_ID=your_web3auth_client_id
NEXTAUTH_SECRET=your_nextauth_secret
NEXTAUTH_URL=http://localhost:3000
# APIs
NEXT_PUBLIC_MAPBOX_TOKEN=your_mapbox_token
GEMINI_API_KEY=your_gemini_api_key
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=your_cloudinary_name
CLOUDINARY_API_SECRET=your_cloudinary_secret- Database Setup
# Generate Prisma Client
npx prisma generate
# Run migrations
npx prisma migrate dev- Start Development Server
npm run dev
# or
pnpm dev
# or
yarn dev- Connect your wallet using Web3Auth
- Complete your profile setup
- Start exploring nearby waste reports
- Click "Report Waste" button
- Upload waste image
- Confirm location on Mapbox
- Wait for Gemini AI verification
- Receive points upon verification
- Browse reports on the interactive map
- Select a cleanup task
- Click "Accept Challenge"
- Complete cleanup
- Upload verification photo
- Earn bonus points