How aviratpatil/shipment-project works
ShipmentPro is a logistics platform whose main workflow is browser login followed by managing customers, shipments, and fleet operations through a role-aware REST API backed by PostgreSQL. The dashboard also exposes analytics, a driver portal, live shipment/truck notifications, and ShipBot. The README documents the analytics and AI services and their database role; their deeper runtime integration is not shown in the sampled source, so those links are documented rather than inferred from imports.
Main entry points: App.tsx Dashboard app · client.ts API client · server.ts Express API · shipment.service.ts Shipment management
Components 22
Web application
- Dashboard app
frontend/src/App.tsx - API client
frontend/src/api/client.ts - Login view
frontend/src/components/LoginView.tsx - Dashboard views
frontend/src/components/DashboardView.tsx - Shipment views
frontend/src/components/ShipmentsView.tsx - Customer view
frontend/src/components/CustomersView.tsx - Fleet and driver views
frontend/src/components/FleetView.tsx - Manifest view
frontend/src/components/ManifestView.tsx - Live notifications
frontend/src/components/NotificationToast.tsx - Analytics view
frontend/src/components/AnalyticsView.tsx - ShipBot interface
frontend/src/components/ChatBot.tsx
Core API
- Express API
backend/src/server.ts - Authentication
backend/src/services/auth.service.ts - WebSocket server
backend/src/lib/websocket.ts - PostgreSQL
Logistics operations
- Customer management
backend/src/services/customer.service.ts - Shipment management
backend/src/services/shipment.service.ts - Fleet and drivers
backend/src/services/truck.service.ts
Analytics and AI
- Analytics service
analytics-service/app.py - AI assistant service
ai-service/app.py - Knowledge ingestion
ai-service/ingest.py
Other components
- User
Connections 33
- User → Dashboard app: uses
- Dashboard app → Login view: shows
frontend/src/App.tsx - Dashboard app → Dashboard views: routes views
frontend/src/App.tsx - Dashboard app → Shipment views: routes views
frontend/src/App.tsx - Dashboard app → Customer view: routes views
frontend/src/App.tsx - Dashboard app → Fleet and driver views: routes views
frontend/src/App.tsx - Dashboard app → Manifest view: routes views
frontend/src/App.tsx - Dashboard app → Live notifications: renders
frontend/src/App.tsx - Dashboard app → Analytics view: routes views
frontend/src/App.tsx - Dashboard app → ShipBot interface: renders
frontend/src/App.tsx - Login view → API client: requests auth
- Dashboard views → API client: requests data
- Shipment views → API client: requests shipments
frontend/src/components/ShipmentsView.tsx - Customer view → API client: requests customers
frontend/src/components/CustomersView.tsx - Fleet and driver views → API client: requests fleet
frontend/src/components/FleetView.tsx - Manifest view → API client: requests manifest
frontend/src/components/ManifestView.tsx - API client → Express API: sends REST
frontend/src/api/client.ts - Express API → Authentication: routes auth
backend/src/server.ts - Express API → Customer management: routes customers
backend/src/server.ts - Express API → Shipment management: routes shipments
backend/src/server.ts - Express API → Fleet and drivers: routes fleet
backend/src/server.ts - Authentication → PostgreSQL: reads and writes
backend/src/services/auth.service.ts - Customer management → PostgreSQL: reads and writes
backend/src/services/customer.service.ts - Shipment management → PostgreSQL: reads and writes
backend/src/services/shipment.service.ts - Fleet and drivers → PostgreSQL: reads and writes
backend/src/services/truck.service.ts - Express API → WebSocket server: initializes
backend/src/server.ts - Shipment management → WebSocket server: publishes updates
backend/src/controllers/shipment.controller.ts - Live notifications → WebSocket server: receives events
- Analytics view → Analytics service: requests reports
- ShipBot interface → AI assistant service: requests assistance
- Analytics service → PostgreSQL: queries shared data
- AI assistant service → PostgreSQL: uses vector store
- Knowledge ingestion → PostgreSQL: loads knowledge