Skip to content
EcoTrack

EcoTrack

Tracking today for a cleaner tomorrow

Created on 1st November 2025

•

EcoTrack

EcoTrack

Tracking today for a cleaner tomorrow

The problem EcoTrack solves

In today’s world, climate change is one of the biggest challenges we face.
However, most individuals don’t realize the impact of their daily activities — from driving cars and using electronics to their diet and waste habits.
Tracking personal carbon footprint is often complex, confusing, and time-consuming.

Personalized CO₂ tracking: Users can log their daily activities — like travel, meals, and electricity usage — to see how much CO₂ they emit.

Visual Reports: Simple, colorful charts display your emission trends over time.

AI-Powered Tips: Get smart recommendations on how to reduce your footprint efficiently.

Leaderboards: Compete with friends or communities to stay motivated toward greener living.

Challenges we ran into

At first, connecting MySQL with Express.js was tricky.
I ran into multiple syntax and callback errors while inserting and fetching user data.
👉 I solved this by switching to prepared statements and using async queries to handle database responses properly.

Rendering user-specific CO₂ data inside Chart.js through EJS templates caused parsing issues.
The JSON data passed from the server was automatically HTML-escaped (e.g., " instead of "), which broke the chart.
👉 I fixed it by using EJS’s <%- %> (unescaped output) instead of <%= %> when passing JSON, ensuring proper formatting.

Discussion

Builders also viewed

See more projects on Devfolio