๐ŸŒฑ 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

Share this project:

Updates