Trekk
Truck tracking and delivery management, from order entry to live GPS and proof of delivery.

The problem
Logistics teams often move orders out the door with a mix of spreadsheets, phone calls and WhatsApp groups. Nobody has one view of where an order is: the operations team enters and groups orders, transport companies plan routes and pick trucks, drivers make the deliveries, and management wants to know who delivers on time.
Trekk takes an order from the moment it enters the system to the moment it is signed for, and gives each of those people their own view of the same live data. The MVP had to be ready to demo without waiting on the client’s warehouse system export, and built on the architecture production would keep.
What I built
Three portals in one app.
- Admin. Orders created by hand or imported from CSV, then grouped and filtered by zone, category, M3, weight or piece count, and handed to a transport company in one step. A live map shows every truck, and analytics cover on-time rate, average delivery time, and comparisons by transport company and by zone.
- Transporter portal. Each transport company sees its assigned orders, plans routes on a map, and assigns a truck and driver.
- Driver app. An installable web app, so no app store: today’s stops, a hand-off to Google Maps or Waze, status updates, and proof of delivery with a photo and an optional signature.
After the MVP came one-click stop-order optimisation, an auto-route that gives every waiting shipment a truck, driver and stop order, routing through hubs, push alerts to drivers’ phones, WhatsApp delivery updates for customers, and CSV exports.
Architecture & stack
Laravel 13 with Inertia 3 and Vue 3 for all three portals, on PostgreSQL. Live tracking runs over Laravel Reverb WebSockets, with channel authorisation so admins and transport companies only see what they should. The driver app posts its position on a fixed interval through the browser’s Geolocation API while it is open; continuous background tracking is on the roadmap for a native app.
Analytics read from a dedicated delivery_stats table instead of scanning orders. Proof-of-delivery photos and signatures are stored on a private disk, and notifications are queued with failure isolation, so one failed email doesn’t hold up the rest.
Highlights
- GPS pings partitioned by month.
gps_pingsuses native PostgreSQL range partitioning on the recorded time. Partitions are created ahead of time and expired months are dropped whole, instead of deleting rows. - A live map that admits when data is stale. Truck positions arrive over Reverb, and each one carries its last-ping time with a staleness indicator, so a driver who closed the app doesn’t look like a parked truck.
- Point-to-point status. Every order keeps its full history, assigned, routed, in transit and delivered, not a single status field.
- No app store in the way. The driver app installs to the home screen, caches its shell, and hands navigation to the driver’s own maps app.