The web dashboard and driver app connect to FastAPI and PostgreSQL. Airflow orchestrates the historical data pipeline through MinIO, Parquet, dbt and DuckDB, feeding analytics dashboards and the AI Copilot.
The prototype uses simulated GPS. Rail feeds, GPS/ELD and IoT integrations, and carbon footprint estimation are planned.

Architecture by layer

Applications

React Web Dashboard
Manage operations, tracking, and invoices, and view analytics and AI insights.
React Native / Expo Driver App
View trips, report GPS positions and status updates, and capture delivery evidence.
Trip-Specific Proof of Delivery
Attach photo evidence and the recipient’s signature to the trip.

Backend & Database

Secure REST APIs
Connect the web dashboard and driver app to FastAPI.
FastAPI Backend
Handles business logic, JWT authentication, organisation-based access, and role permissions.
PostgreSQL
Stores shipments and trips, fleet and partner records, tracking and delivery events, invoices, and payments.

Data & Analytics

Apache Airflow
Orchestrates ingestion and transformation jobs.
Bronze · MinIO and Parquet
Stores raw historical records as Parquet files in MinIO.
Silver and Gold · dbt and DuckDB
Silver models clean and deduplicate records. Gold models prepare them for reporting and analysis.
Analytics Dashboards
Show historical analytics and operational reports through FastAPI.
AI Copilot
Uses LangChain tools to answer natural-language questions from prepared data.

Planned Interfaces

Rail status feeds
Connect to external rail status data sources.
GPS / ELD integration
Connect GPS devices and electronic logging systems.
IoT telemetry
Collect readings from temperature and asset sensors.
Carbon footprint estimation
Estimate transport emissions.