How phani05040/summerpro works
EcoTrack is a carbon-footprint and sustainable-habit tracker. Its intended user journey spans footprint calculation, daily habit logging, history and settings, personalized suggestions, and badges. The frontend currently contains placeholder pages; the sampled code does not show those pages calling the API client, so the graph shows the available client/server wiring without asserting a complete UI workflow. The backend route implementations and external-service calls are sampled; frontend feature wiring beyond routing is uncertain.
Main entry points: app.py Flask app · habits.py Habit records · suggestions.py Suggestion generation · carbon_interface.py Carbon estimates
Components 13
Web interface
- Page routing
frontend/src/app.jsx - React entry
frontend/src/main.jsx - API client
frontend/src/api.js - Badge evaluation
frontend/src/badges.js
Backend API
- Flask app
backend/app.py - Footprint calculator
backend/routes/calculator.py - Habit records
backend/routes/habits.py - Suggestion generation
backend/routes/suggestions.py - Carbon estimates
backend/routes/carbon_interface.py
External services
- Firestore
- Groq API
- Carbon Interface
Other components
- User
Connections 10
- User → Page routing: navigates
- React entry → Page routing: renders
- API client → Flask app: HTTP requests
- Flask app → Footprint calculator: dispatches
- Flask app → Habit records: dispatches
- Flask app → Suggestion generation: dispatches
- Flask app → Carbon estimates: dispatches
- Habit records → Firestore: reads and writes
- Suggestion generation → Groq API: requests completions
- Carbon estimates → Carbon Interface: requests estimates