Ritehaul Logistics
The operations platform of a drayage company: a drag and drop load planner that merges PortPro and Supabase data, plus fleet, fuel, toll and cost screens.


- Role
- Full-stack engineer
- Year
- 2023 to 2026
- Stack
- Vue 3
- PrimeVue
- Pinia
- Supabase
- Resend
- PortPro API
- Tailwind CSS
- Vite
- Built through
- Kega Software(opens in a new tab)
Ritehaul Logistics is a drayage company: its trucks pick up shipping containers at the port terminals, deliver them to customers and bring the empties back. This platform is where its dispatchers plan each day's moves, and where the office keeps track of the trucks, chassis, fuel, tolls and repairs behind them. It runs behind a sign in, so the screens here show demo data.
What I built
I built the platform, from the data model to the screens. At its center is the planner: the drivers down the left, each driver's moves for the day in order across, and the loads still waiting on the right. A dispatcher drags a load onto a driver and the moves renumber. From a load's menu they can split off a pre-pull (picking the container up before its delivery day), mark it as a drop, add the move that returns the container, or reset it to what PortPro says. A capacity table compares the moves planned with what the active drivers can cover, and a button on each driver opens WhatsApp with a message in Spanish listing their moves, containers, chassis and appointment times.
Dispatchers who are not admins send their plan for review. An admin approves it, which locks it, or declines it, and each side gets an email. Around the planner are the screens the office runs the fleet from: trucks and their availability, drivers, chassis, repairs with photos and PDFs attached, fuel, SunPass tolls, expenses, a daily inventory of the containers on site and a gate log. Reports show the margin on each load and what each truck costs to run. Four roles (employee, customer service, admin and super admin) each see their own part of it.
How it is built
It is a single-page Vue 3 app built with Vite. PrimeVue supplies the data tables, dialogs and date pickers, styled with Tailwind CSS, and each area of the app has its own Pinia store. The layout started from Sakai, PrimeVue's open source admin template; the rest is my own work.
The data comes from two places. PortPro, the transportation management system where Ritehaul's loads are created and dispatched, holds the loads, the drivers, their pay and the record of which driver had which truck, and the app reads it through PortPro's REST API. Supabase holds everything PortPro does not: the plan itself, the extra moves the planner adds, the review status, and the records of truck availability, repairs, fuel, tolls, expenses and inventory. It also runs the sign in, the live updates to the plan, the file storage for repairs and two edge functions that send the review emails through Resend.
The hard parts
Merging the two sources was the core problem. A load belongs to PortPro once it is dispatched, but until then the plan in Supabase decides its driver, its date and its place in the order. Each time the planner opens, it fetches both in parallel and merges them by rule: PortPro wins, except while the load is still available or pending, or when the planner has split it into a pre-pull or a drop; then the saved plan decides. The moves the planner adds take their details from the load they came from, so they stay right when PortPro changes the original.
Several people plan the same day at once. The planner listens for changes to the plan through Supabase Realtime and ignores its own. When someone else changes a load that is on screen, it asks the dispatcher to refresh instead of moving cards out from under them.
PortPro's API returns its results in pages. The client reads the total from the first page, fetches the rest in parallel, removes the duplicates that appear when records shift between pages, cancels a request when an identical one replaces it, and gets a new token when the old one is refused.
Toll and fuel costs arrive as files: SunPass statements as spreadsheets, fuel deliveries as PDF tickets. The app reads them in the browser with SheetJS and pdf.js, matches each transponder or vehicle number to a truck, asks PortPro's truck history who was driving it that day, and shows the rows for a check before anything is saved. Those costs then sit in the truck reports next to the miles and pay from PortPro.
Stack
Vue 3, Vite, PrimeVue, Tailwind CSS and Pinia in the browser. Supabase for Postgres, auth, realtime, file storage and edge functions, with Resend for email. The PortPro API for loads and equipment. Chart.js, SheetJS and pdf.js for the charts, the spreadsheets and the PDFs. The app is JavaScript; only the Vite config and the two edge functions are TypeScript.
- PortPro APILoads, drivers, trucks
- Planner appVue 3, merges the two
- SupabaseThe plan, auth, realtime
Screens
Next projectLa Ceiba
Online ordering for a bakery in Puerto Rico, where customers build a pickup order, pay with Stripe and get an email, all within ordering hours.


