How john210706/farmiq works
FarmIQ is a multi-role machinery-rental marketplace. Farmers discover equipment and submit a quote-backed request; owners approve it, the farmer pays, and a driver completes inspected delivery and return handovers before the rental is closed. The frontend is organized around role workflows and sends API requests to an Express backend, where routes coordinate booking, dispatch, payment, and supporting services. The README documents additional account, administration, learning, community, and planning capabilities. Some subsystem connections are included from explicit README documentation or source-index references; unsampled implementation details are not assumed.
Main entry points: Workspace.jsx Role workspace · platform.js Marketplace routes · api.js API client · app.js HTTP application
Components 33
User experience
- Role workspace
frontend/src/Workspace.jsx - Machine catalogue
frontend/src/pages/Catalog.jsx - Booking workflows
frontend/src/pages/Bookings.jsx - Owner management
frontend/src/pages/Manage.jsx - Operations console
frontend/src/pages/Operations.jsx - Learning content
frontend/src/pages/Learning.jsx - Community tools
frontend/src/pages/Community.jsx - Location tools
frontend/src/location.jsx - API client
frontend/src/lib/api.js
API and identity
- HTTP application
backend/src/app.js - Authentication
backend/src/routes/platform-auth.js - Access control
backend/src/middleware/auth.js - Marketplace routes
backend/src/routes/platform.js - Channels and SMS
backend/src/routes/channels.js - Payment routes
backend/src/routes/payments.js - Planning assistance
backend/src/routes/intelligence.js - Admin operations
backend/src/routes/operations.js
Rental operations
- Rental rules
backend/src/domain.js - Booking lifecycle
backend/src/services/booking.js - Driver dispatch
backend/src/services/dispatch.js
Supporting services
- PostgreSQL
- Private documents
backend/src/services/storage.js - Background worker
backend/src/services/worker.js - SMS outbox
backend/src/services/outbox.js - Tutorial service
backend/src/services/tutorials.js - Localization
backend/src/i18n.js - Geospatial utilities
backend/src/utils/geo.js
Other components
- Farmers
- Owners
- Delivery partners
- Administrators
- SMS provider
- Razorpay
Connections 48
- Farmers → Role workspace: use
README.md - Owners → Role workspace: use
README.md - Delivery partners → Role workspace: use
README.md - Administrators → Role workspace: use
README.md - Role workspace → Machine catalogue: renders
frontend/src/Workspace.jsx - Role workspace → Booking workflows: renders
frontend/src/Workspace.jsx - Role workspace → Owner management: renders
frontend/src/Workspace.jsx - Role workspace → Operations console: renders
frontend/src/Workspace.jsx - Role workspace → Learning content: renders
frontend/src/Workspace.jsx - Role workspace → Community tools: renders
frontend/src/Workspace.jsx - Machine catalogue → API client: requests
frontend/src/pages/Catalog.jsx - Booking workflows → API client: requests
frontend/src/pages/Bookings.jsx - Owner management → API client: requests
frontend/src/pages/Manage.jsx - Operations console → API client: requests
frontend/src/pages/Operations.jsx - Learning content → API client: requests
frontend/src/pages/Learning.jsx - Community tools → API client: requests
frontend/src/pages/Community.jsx - Machine catalogue → Location tools: uses
frontend/src/pages/Catalog.jsx - Booking workflows → PostgreSQL: submits rental details
README.md - API client → HTTP application: HTTP requests
README.md - HTTP application → Authentication: mounts
backend/src/app.js - HTTP application → Channels and SMS: mounts
backend/src/app.js - HTTP application → Payment routes: mounts
backend/src/app.js - HTTP application → Admin operations: mounts
backend/src/app.js - HTTP application → Marketplace routes: mounts
backend/src/app.js - HTTP application → Planning assistance: mounts
backend/src/app.js - Authentication → Access control: checks sessions
backend/src/routes/platform-auth.js - Authentication → PostgreSQL: reads and updates users
backend/src/routes/platform-auth.js - Marketplace routes → Access control: requires roles
backend/src/routes/platform.js - Marketplace routes → Booking lifecycle: delegates
backend/src/routes/platform.js - Marketplace routes → Rental rules: uses rules
backend/src/routes/platform.js - Marketplace routes → Driver dispatch: dispatches drivers
backend/src/routes/platform.js - Marketplace routes → Private documents: handles documents
backend/src/routes/platform.js - Marketplace routes → Tutorial service: manages tutorials
backend/src/routes/platform.js - Marketplace routes → Geospatial utilities: uses distance tools
backend/src/routes/platform.js - Booking lifecycle → Rental rules: applies transitions
backend/src/services/booking.js - Booking lifecycle → PostgreSQL: persists bookings
backend/src/services/booking.js - Payment routes → Booking lifecycle: coordinates payment state
backend/src/routes/payments.js - Payment routes → Razorpay: optional checkout
README.md - Driver dispatch → Booking lifecycle: assigns drivers
backend/src/services/dispatch.js - Driver dispatch → Geospatial utilities: uses distance tools
backend/src/services/dispatch.js - Channels and SMS → Booking lifecycle: reads booking context
backend/src/routes/channels.js - Channels and SMS → SMS outbox: queues notices
backend/src/routes/channels.js - SMS outbox → SMS provider: sends messages
README.md - Background worker → Driver dispatch: runs dispatch
backend/src/services/worker.js - Background worker → SMS outbox: processes messages
backend/src/services/worker.js - Planning assistance → Rental rules: uses domain rules
backend/src/routes/intelligence.js - Location tools → API client: requests address lookup
frontend/src/location.jsx - Booking workflows → API client: starts checkout
frontend/src/pages/Bookings.jsx