A decentralized tree planting verification platform built with Next.js that enables users to document and verify tree planting activities through video submissions
- 🎥 Video Verification: Upload before/after videos of tree planting activities
- 🔗 Storage: Video storage using FileBase
- 👤 Web3 Authentication: Google OAuth and wallet-based login via Thirdweb
- 📱 Mobile-First Design: Responsive UI optimized for mobile devices
- 🏆 Leaderboard: Track and rank community tree planting contributions
- 📍 GPS Integration: Location-based verification for submissions
- ⚡ Real-time Review: Community-driven submission approval system
- Framework: Next.js 14 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS
- UI Components: Flowbite React
- Authentication: Thirdweb (Google OAuth + Wallet Connect)
- Storage: FileBase
- State Management: React Context
- HTTP Client: Axios
-
Clone the repository
git clone <repository-url> cd treegens-frontend
-
Install dependencies
yarn install
-
Set up environment variables
cp .env.example .env.local
Configure the following variables:
NEXT_PUBLIC_IPFS_GATEWAY=your-gateway NEXT_PUBLIC_THIRDWEB_CLIENT_ID=your-thirdweb-client-id NEXT_PUBLIC_API_BASE_URL=https://treegens-be.generalmagic.io
-
Run the development server
yarn dev
-
Open your browser
Navigate to http://localhost:3000
- Dashboard: Overview of submissions and recent activity
- New Plant: Upload before/after videos with GPS verification
- My Plants: View your submitted tree planting videos
- Submissions: Review community submissions
- Leaderboard: Top contributors and statistics
We welcome contributions! Please feel free to submit issues and pull requests.
This project is open source and available under the MIT License.
Built with 💚 for a greener future