Skip to content

ck-ahmad/Carbon_Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌱 Carbon Tracker

Carbon Tracker is a web application that helps users track their food choices and understand the carbon emissions associated with them.
The goal is to encourage sustainable eating habits by providing personalized insights and history tracking.


🚀 Demo

🔗 Live Demo (if hosted)


📖 Project Overview

✨ What does Carbon Tracker do?

  • Allows users to create a personal profile.
  • Log food items and calculate their carbon footprint instantly.
  • Visualize history and insights with clean charts.
  • Promote awareness of how dietary choices impact the environment.

💡 Problem Statement

Climate change is one of the biggest challenges of our time. Food production contributes to a significant share of greenhouse gas emissions. However, most people are unaware of the emissions tied to their daily meals.
Carbon Tracker bridges this gap by making food emissions transparent, simple, and engaging to track.

🧠 AI Approach

  • Uses a carbon emissions dataset for foods.
  • Applies data cleaning, processing, and analysis with Python (pandas, NumPy, scikit-learn).
  • Offers predictive insights into user trends over time.
  • Future plans include integrating AI recommendations for eco-friendly alternatives.

🌍 Real-world Impact

By helping individuals become aware of the carbon footprint of their diet:

  • Encourages sustainable food choices.
  • Contributes to reducing overall emissions.
  • Scales awareness from individuals to collective climate action.

🛠️ Tech Stack

Frontend

  • HTML5, CSS3, Bootstrap 5 (Dark Theme)
  • Jinja2 Templates (Flask Integration)

Backend

  • Flask (Python)
  • MongoDB (Data Storage)

Data & Visualization

  • NumPy, pandas (Data Handling)
  • Matplotlib, Seaborn (Visualizations)

📂 Project Structure

carbon-tracker/ │── app.py # Main Flask Application │── templates/ # Jinja2 HTML Templates │ ├── base.html │ ├── index.html │ ├── profile.html │ ├── history.html │── static/ # CSS, JS, Images │── requirements.txt # Dependencies │── README.md # Documentation

yaml Copy Edit


⚡ Installation & Setup

  1. Clone the repository
    git clone https://github.com/your-username/carbon-tracker.git
    cd carbon-tracker

Create virtual environment

python -m venv venv
source venv/bin/activate  # For Mac/Linux
venv\Scripts\activate     # For Windows

Install dependencies

pip install -r requirements.txt

Run the app

flask run : python app.py
Visit:
👉 http://127.0.0.1:5000/

📌 Future Plans

✅ Add AI-based recommendations for low-emission meal alternatives.
✅ Enhance visualization with interactive dashboards.
✅ Mobile-first responsive design.
✅ Integration with fitness & diet APIs.

👨‍💻 Contributors

1 - Backend => Ahmad (Me)
2 - Frontend => M.AizazUllah

📜 License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors