-
-
Homepage: EcoLocal's mission, impact stats, and how we help users live more sustainably โ tied to UN Goal 11.
-
Dashboard: See daily eco-challenges, earn points, unlock badges, and track your streaks.
-
Challenges & Leaderboard: Complete actions like "Use public transit" and climb the leaderboard with friends.
-
Weekly Impact Tracker: Track your eco-contributions โ see COโ saved, water conserved, and how each action stacks up.
-
Visual Charts: Get a clear breakdown of environmental impact per challenge with Recharts-based visualizations.
-
Nearby Eco Spots: Discover and submit local recycling centres, thrift shops & eco cafรฉs to help others live greener.
๐ฑ Inspiration
Urban areas generate over 70% of global COโ emissions โ and cities are growing faster than ever. I wanted to build something fun and meaningful that helps everyday people take small eco-friendly actions that, together, create big impact.
Inspired by UN Sustainable Development Goal 11 โ Make cities inclusive, safe, resilient, and sustainable โ I created EcoLocal to gamify sustainable living and turn good habits into a movement.
๐ What It Does
EcoLocal is a gamified web app that encourages urban users to live more sustainably by:
- ๐ข Giving daily eco-challenges (e.g. take public transport, use a reusable bag)
- ๐ Awarding points, streaks, leader board and unlockable badges for completed actions
- ๐ Tracking weekly COโ and water saved via beautiful charts
- ๐บ๏ธ Showing a map of local eco-spots, like thrift stores and recycling stations
- ๐ Letting users submit new pins to crowdsource green locations
With a polished UI, confetti animations, toast alerts, and real-time updates โ EcoLocal turns climate-friendly choices into a daily game.
๐ ๏ธ How I Built It
I built EcoLocal solo in under 10 days using:
- Next.js + Tailwind CSS for a clean, responsive frontend
- Firebase (Auth + Firestore) to store users, track challenges, badges & points
- Leaflet.js with OpenStreetMap for eco-location mapping
- Recharts to visualize weekly environmental impact
- Vercel for fast, free deployment
- Plus: gamified features like streak tracking, badge unlocks, and confetti ๐
This was my first full-stack web project โ and I learned everything as I built it!
๐ง What I Learned
- How to integrate Firebase Authentication and Firestore queries
- Managing nested user data (points, streaks, badges) in real-time
- Creating responsive UI with Tailwind and testing for mobile accessibility
- Using React state and conditional logic to trigger animations and reward loops
- Deploying with Vercel, fixing build issues, and debugging ESLint crashes
๐ง Challenges I Ran Into
- Making authentication work smoothly across platforms (Google login)
- Displaying dynamic, personalized data without UI flicker
- Balancing mobile responsiveness and usability
- Debugging build-time crashes on Vercel (solved by managing ESLint configs)
- Structuring Firestore documents for scalable challenge logic
๐ Accomplishments I'm Proud Of
- Built and deployed a full-stack gamified app from scratch in just 10 days
- Completed all major features: daily challenges, points, badges, streaks, maps
- Designed an engaging UI that feels fun, motivating, and rewarding
- Created something that could genuinely help people live greener lives
- Learned more in 10 days than I ever expected โ and had a blast doing it
๐ฎ Whatโs Next for EcoLocal
- ๐๏ธ Let users redeem points for local eco-coupons or digital goodies
- ๐ง Expand the challenge library using AI-based personalization
- ๐ฒ Launch as a mobile-first progressive web app (PWA)
EcoLocal is just the start โ I believe small steps, taken daily, can help make cities greener, cleaner, and more connected. Let's build sustainable habits, together. ๐
Built With
- auth
- chart.js
- css
- firebase
- firestore
- leaflet.js
- next.js
- openstreetmap
- react
- react-hot-toast
- tailwind
- vercel
Log in or sign up for Devpost to join the conversation.