How agrinyoteam/agrinyo works
AgriLink is a marketplace for renting agricultural machines in Togo. A visitor or signed-in user navigates the web app, discovers machines and offers, and can manage a listing or submit a reservation; reservation management includes owner decisions and messaging. The frontend also supports accounts, profile changes, and password recovery. The backend is divided into accounts, machines, offers, and reservations. Source excerpts establish frontend routing, session handling, API requests, and selected listing actions; most backend views and several frontend pages were not sampled, so some cross-layer links remain unverified.
Main entry points: App.jsx App and routing · api.js API client · views.py Account endpoints · models.py Machines and reviews
Components 20
Web application
- App and routing
frontend/src/App.jsx - Session state
frontend/src/session.jsx - API client
frontend/src/api.js - Sign-in and profile pages
frontend/src/pages - Machine discovery
frontend/src/pages/Machines.jsx - Owner machine listings
frontend/src/pages/MesMachines.jsx - Machine editor
frontend/src/pages/FormulaireMachine.jsx - Offer browsing and forms
frontend/src/pages/Offres.jsx - Reservations and requests
frontend/src/pages/MesReservations.jsx - Reservation conversation
frontend/src/pages/Conversation.jsx
Accounts and identity
- Account endpoints
backend/comptes/views.py - Account services
backend/comptes - User records
backend/comptes/models.py
Marketplace listings
- Machine endpoints
backend/machines/views.py - Machines and reviews
backend/machines/models.py - Offer endpoints
backend/offres/views.py - Offer records
backend/offres/models.py
Reservations and messaging
- Reservation endpoints
backend/reservations/views.py - Reservations and messages
backend/reservations/models.py
Other components
- Visitor or user
Connections 24
- Visitor or user → App and routing: uses
- App and routing → Session state: checks
frontend/src/App.jsx - App and routing → Sign-in and profile pages: renders
frontend/src/App.jsx - App and routing → Machine discovery: routes
frontend/src/App.jsx - App and routing → Owner machine listings: routes
frontend/src/App.jsx - App and routing → Machine editor: routes
frontend/src/App.jsx - App and routing → Offer browsing and forms: routes
frontend/src/App.jsx - App and routing → Reservations and requests: routes
frontend/src/App.jsx - App and routing → Reservation conversation: routes
frontend/src/App.jsx - Session state → API client: calls
frontend/src/session.jsx - Machine editor → API client: creates or edits
frontend/src/pages/FormulaireMachine.jsx - Owner machine listings → API client: loads and updates
frontend/src/pages/MesMachines.jsx - Reservation conversation → API client: uses
frontend/src/pages/Conversation.jsx - API client → Machine endpoints: requests
- API client → Account endpoints: requests
- API client → Offer endpoints: requests
- API client → Reservation endpoints: requests
- Account endpoints → User records: reads and writes
- Account endpoints → Account services: uses
- Machine endpoints → Machines and reviews: reads and writes
- Offer endpoints → Offer records: reads and writes
- Reservation endpoints → Reservations and messages: reads and writes
backend/reservations/views.py - Reservations and messages → Machines and reviews: references machine
backend/reservations/models.py - Offer records → Machines and reviews: references machine
backend/offres/models.py