How raghavendra348/truckconnect works
TruckConnect is a freight and trucking marketplace with customer, truck-owner, and administrator experiences. The main workflow is users signing in, posting loads or responding to them, then managing bookings, trips, delivery, payments, and related records; messaging and administrative oversight are supporting branches. The tree shows Django domain apps and a React client. Backend view-to-model and client-to-server wiring is largely unsampled, so those connections are omitted or marked unverified rather than inferred.
Main entry points: api.js API client · App.jsx Application routes · customer Customer workspace · admin Admin workspace
Components 26
Web client
- Application routes
truckconnect-frontend/src/App.jsx - Authentication state
truckconnect-frontend/src/redux/authSlice.js - Redux store
truckconnect-frontend/src/redux/store.js - API client
truckconnect-frontend/src/services/api.js - Display formatters
truckconnect-frontend/src/utils/formatters.js - Customer workspace
truckconnect-frontend/src/pages/customer - Owner workspace
truckconnect-frontend/src/pages/owner - Admin workspace
truckconnect-frontend/src/pages/admin
Identity and fleet
- Accounts and profiles
truckconnect-backend/accounts - Driver records
truckconnect-backend/drivers/models.py - Truck fleet
truckconnect-backend/trucks/models.py
Freight operations
- Load listings
truckconnect-backend/loads - Freight offers
truckconnect-backend/offers - Bookings
truckconnect-backend/bookings - Trip tracking
truckconnect-backend/trips - Delivery records
truckconnect-backend/deliveries
Finance and oversight
- Payments
truckconnect-backend/payments - Settlements
truckconnect-backend/settlements - Trip expenses
truckconnect-backend/expenses - Operational reports
truckconnect-backend/reports - Admin workflows
truckconnect-backend/admin_panel
Communication and support
- Conversations
truckconnect-backend/conversations - Dispute cases
truckconnect-backend/disputes - Notifications
truckconnect-backend/notifications/models.py - Notification creation
truckconnect-backend/notifications/services.py
Other components
- Marketplace users
Connections 22
- Marketplace users → Application routes: uses
- Application routes → Authentication state: reads auth state
truckconnect-frontend/src/App.jsx - Application routes → Customer workspace: routes to
truckconnect-frontend/src/App.jsx - Application routes → Owner workspace: routes to
truckconnect-frontend/src/App.jsx - Application routes → Admin workspace: routes to
truckconnect-frontend/src/App.jsx - Authentication state → Redux store: registered in
- Customer workspace → API client: requests data
truckconnect-frontend/src/pages/customer/Dashboard/index.jsx - Customer workspace → API client: loads disputes
truckconnect-frontend/src/pages/customer/Disputes/index.jsx - Customer workspace → API client: loads conversations
truckconnect-frontend/src/pages/customer/Chat/index.jsx - Customer workspace → Display formatters: formats values
truckconnect-frontend/src/pages/customer/Chat/index.jsx - Admin workspace → API client: requests data
truckconnect-frontend/src/pages/admin/Dashboard/index.jsx - Admin workspace → Authentication state: sets credentials
truckconnect-frontend/src/pages/admin/Login/index.jsx - Notification creation → Notifications: creates record
truckconnect-backend/notifications/services.py - API client → Accounts and profiles: API requests
- API client → Load listings: API requests
- API client → Freight offers: API requests
- API client → Bookings: API requests
- API client → Trip tracking: API requests
- API client → Payments: API requests
- API client → Conversations: API requests
- API client → Dispute cases: API requests
- API client → Notifications: API requests