How nithinkumargangisetty/eco_guard_pdd works
EcoGuard lets Guardians and researchers submit geolocated plant sightings, then view and monitor reports; administrators moderate reports and accounts. The web dashboard and Expo app are separate user interfaces over Firebase, with mobile offline caching and server-side report rewards. Documented capabilities also include AI diagnosis, maps, gamification, and satellite-index simulations. The excerpts show key Firebase reads, writes, listeners, and backend triggers, but not all feature implementations or the app-to-callable AI wiring; uncertain links are omitted or marked unverified.
Main entry points: App.js Mobile app · App.jsx Web dashboard · src/firebase.js Web Firebase client · config/firebase.js Mobile Firebase client
Components 19
Reporting clients
- Web dashboard
frontend/src/App.jsx - Mobile app
mobile-app/frontend/App.js
Firebase platform
- Web Firebase client
frontend/src/firebase.js - Mobile Firebase client
mobile-app/backend/config/firebase.js - Firebase Authentication
- Sightings and users
- Firestore access rules
firestore.rules - Firebase Storage
- Storage access rules
storage.rules - Report rewards trigger
functions/index.js - Role management
functions/index.js
Diagnosis and monitoring
- AI plant diagnosis
functions/index.js - Google Gemini
- Biogeographical maps
frontend/src/App.jsx - Satellite monitor
frontend/src/App.jsx - Mobile map and GPS
mobile-app/frontend/App.js
Other components
- Guardian / researcher
- Administrator
- OpenStreetMap tiles
Connections 28
- Guardian / researcher → Web dashboard: submits reports
README.md - Guardian / researcher → Mobile app: submits reports
README.md - Administrator → Web dashboard: moderates reports
README.md - Web dashboard → Web Firebase client: uses services
frontend/src/App.jsx - Mobile app → Mobile Firebase client: uses services
- Web Firebase client → Firebase Authentication: initializes
frontend/src/firebase.js - Web Firebase client → Sightings and users: initializes
frontend/src/firebase.js - Web Firebase client → Firebase Storage: initializes
frontend/src/firebase.js - Mobile Firebase client → Firebase Authentication: initializes
mobile-app/backend/config/firebase.js - Mobile Firebase client → Sightings and users: initializes
mobile-app/backend/config/firebase.js - Mobile Firebase client → Firebase Storage: initializes
mobile-app/backend/config/firebase.js - Web dashboard → Firebase Authentication: authenticates users
frontend/src/App.jsx - Web dashboard → Sightings and users: reads and writes
frontend/src/App.jsx - Mobile app → Firebase Authentication: authenticates users
mobile-app/frontend/App.js - Mobile app → Sightings and users: syncs reports
mobile-app/frontend/App.js - Mobile app → Sightings and users: queues offline
README.md - Firestore access rules → Sightings and users: controls access
- Storage access rules → Firebase Storage: controls access
- Sightings and users → Report rewards trigger: triggers on create
functions/index.js - Report rewards trigger → Sightings and users: updates user points
functions/index.js - Administrator → Role management: assigns roles
- Role management → Sightings and users: updates user role
functions/index.js - AI plant diagnosis → Google Gemini: requests diagnosis
functions/index.js - Guardian / researcher → AI plant diagnosis: requests identification
README.md - Web dashboard → Biogeographical maps: renders sighting map
frontend/src/App.jsx - Biogeographical maps → OpenStreetMap tiles: loads tiles
frontend/src/App.jsx - Mobile app → Mobile map and GPS: provides GPS mapping
README.md - Guardian / researcher → Satellite monitor: views monitoring
README.md