How mahirsinthia007/agrisync works
AgriSync is a farm-to-buyer marketplace: users browse or manage produce, then buyers cart and order it, with delivery tracking completing fulfillment. The React app routes role-specific pages to an Express API, whose domain routes dispatch to controllers and persist through Prisma. The graph also preserves the documented platform’s supporting capabilities—comparison, offers and negotiation, inventory, reviews, payments, messaging, delivery zones, and administration. Some controller and page implementations were not sampled, so links between those subsystems are limited to supported entry-point and directory-level relationships.
Main entry points: server.js API routing · App.jsx App routing · db.js Application database · productController.js Product APIs
Components 26
Web experience
- App routing
frontend-app/src/App.jsx - Product browsing
frontend-app/src/pages/BrowseProducts.jsx - Farmer products
frontend-app/src/pages/MyProducts.jsx - Cart and checkout
frontend-app/src/pages/CheckoutPage.jsx - Order views
frontend-app/src/pages/OrdersPage.jsx
Marketplace
- Product APIs
backend/controllers/productController.js - Comparison
backend/controllers/comparisonController.js - Inventory
backend/controllers/inventoryController.js - Offers and negotiation
backend/controllers/offerController.js - Reviews and moderation
backend/controllers/reviewController.js
Commerce
- Cart
backend/controllers/cartController.js - Order management
backend/controllers/orderController.js - Payments
backend/controllers/paymentController.js - Messaging
backend/controllers/messageController.js
Fulfillment
- Delivery operations
backend/controllers/deliveryController.js - Delivery zones
backend/controllers/deliveryZoneController.js
Platform services
- Administration
backend/controllers/adminController.js - Users and access
backend/controllers/userController.js - API routing
backend/server.js - Application database
backend/config/db.js - Image storage
backend/config/storage.js
Other components
- Buyers
- Farmers
- Administrators
- Delivery people
- Supabase Storage
Connections 28
- Buyers → App routing: use
- Farmers → App routing: use
- Administrators → App routing: use
- Delivery people → App routing: use
- App routing → Product browsing: routes to
- App routing → Farmer products: routes to
- App routing → Cart and checkout: routes to
- App routing → Order views: routes to
- API routing → Product APIs: dispatches
- API routing → Cart: dispatches
- API routing → Order management: dispatches
- API routing → Reviews and moderation: dispatches
- API routing → Delivery operations: dispatches
- API routing → Delivery zones: dispatches
- API routing → Comparison: dispatches
- API routing → Inventory: dispatches
- API routing → Offers and negotiation: dispatches
- API routing → Payments: dispatches
- API routing → Messaging: dispatches
- API routing → Administration: dispatches
- API routing → Users and access: dispatches
- Product APIs → Application database: reads and writes
- Cart → Application database: reads and writes
- Order management → Application database: reads and writes
- Reviews and moderation → Application database: reads and writes
- Delivery operations → Application database: reads and writes
- Administration → Application database: reads and writes
- Image storage → Supabase Storage: uploads and deletes