StarTruck is a logistics operations platform — the system drivers and admins use for daily delivery work, and my most actively maintained project: 49 commits, versioned APK releases, and a changelog that documents every user-visible change. This is a walkthrough of how it's put together.
Two halves, one system
The mobile half is an Expo / React Native app (SDK 57, TypeScript) that drivers and admins live in all day:
- Zustand for client state, TanStack Query for server state — so lists, quotations, and receipts stay consistent across screens
- react-hook-form + zod for every form, because delivery data entry is where mistakes get expensive
- Biometric authentication locks the app to its user
- PDF generation on device via expo-print — quotations and receipts can be printed or shared straight from a phone, no office trip required
The backend is a Next.js application running Prisma 7 on PostgreSQL. Two Vercel cron jobs keep it healthy without manual work: one cleans up expired sessions, the other rolls daily metrics so the dashboards don't recompute the same aggregates on every request.
The details that matter
Logistics software lives or dies on paperwork. The v2.1.4 → v2.1.5 release cycle focused exactly there:
- Quotation and receipt generation fixes, found by watching real deliveries
- A faster customer picker at the point of quoting
- Audit-protected voiding — a record can be reversed, but never silently erased. Every void leaves a trail.
Engineered to be maintained
The app ships through EAS builds with versioned APK releases. Jest tests cover the app logic, and the repository carries its own browser QA scripts (hero, coverage, and services QA suites) plus a Python asset pipeline that prepares and validates hero imagery before it ships.
Building for logistics taught me the same lesson every domain project does: the workflows come first, the architecture just has to keep up.