Skip to content

roseewood/CarbonWise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

๐ŸŒฑ CarbonWise

A carbon footprint tracking & coaching app to help you measure, understand, and reduce your environmental impact.


๐Ÿ”งTech Stack

javascript react typescript python html5 css3


โœจ Features

  • ๐Ÿš— Tracking
  • Track lifestyle inputs: transport, energy, diet, waste

  • ๐Ÿ“Š Visualization
  • Detailed footprint breakdown with charts & visuals

  • ๐Ÿ’ก Tips
  • Personalized recommendations to cut emissions

  • ๐Ÿค– AI
  • Rule-based AI powered coaching system

  • ๐Ÿ”’ Authentication
  • Secure login with JWT + bcrypt

  • ๐ŸŒ Access
  • Works online & offline with fallbacks


๐ŸŒฟ Carbon Footprint Engine

Category Calculation Method
๐Ÿš— Transport Mode factors → Car: 0.192 · Bus: 0.082 · Metro: 0.028 (kg/km)
โšก Energy Grid electricity → 0.70 kg/kWh
๐Ÿ” Diet Multipliers → Meat-heavy: 1.3x · Vegetarian: 0.75x · Vegan: 0.6x
๐Ÿ—‘๏ธ Waste Category-specific emission factors

๐Ÿ‘‰ Outputs: Annual totals · % distribution · category breakdown


๐Ÿ—๏ธ System Architecture

Component Technology Purpose
Frontend React 18 โš›๏ธ · TypeScript · Vite ๐Ÿš€· TailwindCSS ๐ŸŽจ · Chart.js ๐Ÿ“Š User interface & visualization
Backend FastAPI โšก · Uvicorn ๐Ÿ”ฅ · Pydantic API & business logic
Data CSV (emission_factors.csv) + In-memory storage Emission factors & user/auth
Auth JWT ๐Ÿ”‘ (python-jose) · bcrypt ๐Ÿ”’ (passlib) Secure login & signup

โšก Backend Routes

Route Purpose
/estimateCalculate carbon footprint
/recommendGet reduction suggestions
/coachAI-based coaching
/authSignup & login
/factorsGet emission factors

๐Ÿ“ธ App Preview

๐Ÿ  Home Page


๐Ÿงฎ Carbon Calculator


๐Ÿค– AI Coach


๐Ÿ”‘ Sign Up


๐Ÿ” Log In



๐Ÿš€Getting Started

๐Ÿ“ฅ Clone & Install

git clone https://github.com/roseewood/CarbonWise.git
cd CarbonWise

โš™๏ธ Backend setup

cd backend
python3 -m venv venv
source venv/bin/activate   # On Windows: venv\Scripts\activate
pip install -r requirements.txt

๐ŸŽจ Frontend setup

cd ../frontend
npm install

โ–ถ๏ธ Run in Development

๐Ÿ–ฅ๏ธ Backend

cd backend
uvicorn app:app --reload

๐ŸŒ Frontend (in a new terminal)

cd frontend
npm run dev

Both servers should now be live โœจ

  • ๐Ÿ”— API → http://127.0.0.1:8000
  • ๐Ÿ’ป React app → http://localhost:5173

โ“ Why CarbonWise

Because sustainability should be simple. No jargon. No guilt. Just clear insights, easy actions, and real impact.

๐Ÿ’ก Recommendation System

  • ๐Ÿ“Š Algorithm: Rule-based (targets highest category)
  • ๐ŸŽฏ Personalized: Suggestions tailored to footprint breakdown
  • ๐ŸŒ Impact: Estimated COโ‚‚ savings per action
  • Categories:
    • ๐Ÿš— Transport switching
    • โšก Energy efficiency
    • ๐Ÿด Dietary changes
    • โ™ป๏ธ Waste reduction

MIT License © 2025 · Built with ๐Ÿ’š for a greener future

About

Personal Carbon Footprint Auditor

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors