How ranjanadevi1802/agrochain works
AgroChain is a React prototype for farm-to-consumer produce traceability. Users enter through the routed app shell and use separate portals to manage farmers, FPO batches, distributor shipments and retailer packets; consumers can view a simulated QR verification, while dashboards, blockchain and notification pages expose transparency information. The README documents a dual-level QR journey, pricing analytics and SMS/IVR updates. Sampled code uses local dummy data; Hyperledger Fabric and messaging integrations are described as planned or architecture-ready, not demonstrated runtime services.
Main entry points: App.jsx App Router · dummyData.js Sample Records · Farmers.jsx Farmer Directory · FPO.jsx FPO Produce Batches
Components 15
Application Shell
- App Router
src/App.jsx - Navigation Shell
src/components/Layout.jsx - React Bootstrap
src/main.jsx
Supply Chain Portals
- Farmer Directory
src/pages/Farmers.jsx - FPO Produce Batches
src/pages/FPO.jsx - Distributor Tracking
src/pages/Distributors.jsx - Retail QR Packs
src/pages/Retailers.jsx
Transparency Views
- Dashboard Analytics
src/pages/Dashboard.jsx - Consumer Verification
src/pages/ConsumerVerify.jsx - Ledger Explorer
src/pages/Blockchain.jsx - SMS IVR Logs
src/pages/Notifications.jsx
Prototype Data
- Sample Records
src/data/dummyData.js
Other components
- Platform User
- Farmer
- Consumer
Connections 25
- React Bootstrap → App Router: renders
src/main.jsx - App Router → Navigation Shell: routes through
src/App.jsx - App Router → Dashboard Analytics: routes to
src/App.jsx - App Router → Farmer Directory: routes to
src/App.jsx - App Router → FPO Produce Batches: routes to
src/App.jsx - App Router → Distributor Tracking: routes to
src/App.jsx - App Router → Retail QR Packs: routes to
src/App.jsx - App Router → Consumer Verification: routes to
src/App.jsx - App Router → Ledger Explorer: routes to
src/App.jsx - App Router → SMS IVR Logs: routes to
src/App.jsx - Platform User → App Router: uses
- Farmer → Farmer Directory: registers with
README.md - Farmer Directory → FPO Produce Batches: delivers produce
README.md - FPO Produce Batches → Distributor Tracking: hands off
README.md - Distributor Tracking → Retail QR Packs: delivers produce
README.md - Retail QR Packs → Consumer: offers QR
README.md - Consumer → Consumer Verification: scans QR
README.md - Dashboard Analytics → Sample Records: reads
src/pages/Dashboard.jsx - Farmer Directory → Sample Records: reads
src/pages/Farmers.jsx - FPO Produce Batches → Sample Records: reads
src/pages/FPO.jsx - Distributor Tracking → Sample Records: reads
src/pages/Distributors.jsx - Retail QR Packs → Sample Records: reads
src/pages/Retailers.jsx - Consumer Verification → Sample Records: reads
src/pages/ConsumerVerify.jsx - Ledger Explorer → Sample Records: reads
src/pages/Blockchain.jsx - SMS IVR Logs → Sample Records: reads
src/pages/Notifications.jsx