How ganeshvidela26/revastra works
REVastra is a multi-role circular-economy platform. Its central lifecycle spans waste-giver collection requests, collector pickup and QR verification, recovery-centre segregation and weighing, then traceable material sales to buyers; a parallel food-donation flow connects givers with NGOs. Green Coins reward participation, while civic reporting and admin analytics provide additional capabilities. The excerpts show shared state and persistence boundaries; several role pages and integrations are documented but unsampled, so their links rely on README statements rather than inspected implementation.
Main entry points: DataContext.jsx Shared application state · qrService.js QR traceability · Routes.jsx Pickup and routes · SegregationWeighing.jsx Segregation and weighing
Components 25
User access
- Role routing
src/App.jsx - Authentication
src/context/AuthContext.jsx
Waste operations
- Collection requests
src/pages/wasteGiver/RequestCollection.jsx - Pickup and routes
src/pages/collector/Routes.jsx - QR traceability
src/services/qrService.js - Segregation and weighing
src/pages/recoveryCentre/SegregationWeighing.jsx
Food and materials exchange
- Material marketplace
src/pages/buyer/Marketplace.jsx - Buyer orders
src/pages/buyer/Orders.jsx - Food donation
src/pages/wasteGiver/DonateFoodPage.jsx - NGO pickups
src/pages/ngo/FoodDonations.jsx
Oversight and impact
- Civic reporting
src/pages/civicWatch/CivicWatchReport.jsx - Admin oversight
src/pages/admin/Overview.jsx - Impact analytics
src/pages/admin/ImpactAnalytics.jsx
Shared platform services
- Green Coin rewards
src/services/greenCoinService.js - Shared application state
src/context/DataContext.jsx - Local persistence adapter
src/services/apiService.js - Firebase sync
src/services/firebase.js - Analytics charts
src/components/charts/MaterialDistributionChart.jsx
Other components
- Waste giver
- Collector
- Recovery centre
- Buyer
- NGO
- Admin
- Public visitor
Connections 23
- Public visitor → Role routing: enters platform
src/App.jsx - Role routing → Authentication: provides auth
src/App.jsx - Waste giver → Collection requests: requests pickup
README.md - Collection requests → Pickup and routes: assigns pickup
- Collector → Pickup and routes: manages pickups
README.md - Pickup and routes → QR traceability: scans source
README.md - QR traceability → Segregation and weighing: tracks batches
README.md - Recovery centre → Segregation and weighing: weighs materials
README.md - Segregation and weighing → Material marketplace: releases materials
- Buyer → Material marketplace: browses materials
README.md - Buyer → Buyer orders: places orders
README.md - Waste giver → Food donation: donates surplus
README.md - NGO → NGO pickups: manages pickups
README.md - Food donation → NGO pickups: offers donations
README.md - Public visitor → Civic reporting: files reports
- Admin → Admin oversight: oversees platform
README.md - Admin → Impact analytics: reviews impact
README.md - Waste giver → Green Coin rewards: earns rewards
README.md - Shared application state → Local persistence adapter: saves state
src/context/DataContext.jsx - Shared application state → Firebase sync: syncs records
src/context/DataContext.jsx - Shared application state → Green Coin rewards: calculates rewards
src/context/DataContext.jsx - Impact analytics → Analytics charts: visualizes metrics
README.md - QR traceability → Public visitor: enables verification
README.md