Case study 01 / 05Live

FLITO
Freight Matching Platform for Nepal
A truck booking platform that puts empty return trips back to work.
- Role
- Solo developer
- design, API, auth, testing, deployment
- Timeline
- Sept 2026 – Present
- Full-Stack Application
- Status
- Live
- flito.sanjay019.com.np
- Core stack
- React Native · Expo
- Redux Toolkit, Node.js, Express.js
- Automated tests
- 629
- User roles
- 4
- Platforms (Web + Android)
- 2
- Deployed services
- 3
Gallery
Inside FLITO
01Overview
The problem, and what I built
The problem
Trucks often drive home empty while shippers elsewhere can't find capacity, and many people on both sides have no email and read Nepali more easily than English. FLITO matches the two, from a posted load to a signed delivery.
What I built
A truck booking platform for Nepal that fills empty return trips, with live trip maps, signed deliveries and PDF invoices, on the web and Android.
Role-based marketplace for shippers, truck owners, drivers and admins on React Native (Expo) and Express: one backend serves the web app, the Android app and a public site, in Nepali and English.
Ranked truck matching for loads of up to 10 trucks, with conditional updates so racing acceptances can't double-book a truck or overfill a load.
A live trip map on free services (Leaflet, OpenStreetMap, OSRM) with the road route and a loaded truck's arrival time; drivers work each trip from a one-button screen that ends in the receiver's signature.
Payments recorded, never held: bank and eSewa/Khalti details with QR codes, owner-confirmed payments, numbered PDF invoices and fees billed by Nepali month.
Four ways to sign in (phone + PIN, email with hashed one-time codes, Google, and a key-gated admin portal), identity checks before offers, and an append-only admin audit log.
Backed by 629 automated tests (392 API tests on an in-memory MongoDB, 237 component tests), run with linting and a dependency audit in GitHub Actions on every push and pull request.
02Architecture
How it fits together
Clients · Vercel + Android
- React Native (Expo) - web build + Android via EAS
- Redux Toolkit · React Navigation
- Public site + screens per role
- Nepali and English, A.D. and B.S. dates
- Leaflet + OpenStreetMap live trip map
API · Render
- Express REST API + Socket.io events
- JWT auth, role and verification gates
- Matching, truck slots, trip-day reservations
- Monthly fees · PDFKit invoices
- Helmet, rate limits, structured logs
Data & services
- MongoDB Atlas via Mongoose
- Users · Loads · Quotes · Bookings · Payments · Fees
- Append-only admin audit log
- Brevo email · Cloudinary uploads · Expo push
- OSRM road distances and routes
Built with
- React Native
- Expo
- Redux Toolkit
- Node.js
- Express.js
- MongoDB
- Socket.io
- JWT
- Jest
- GitHub Actions
- Docker
03Decisions
Key engineering decisions
One backend for web and Android
Expo ships one React Native codebase as a Vercel web build and an Android app, both talking to a single Express API.
Trade-offReact Native Web is less flexible than a hand-built web UI, but there's no second frontend to maintain.
Fixed-price offers, one booking per truck
An owner offers a price per truck, or the shipper asks a matched truck at their price, and the other side accepts or declines. Each accepted truck is its own booking, claimed in a conditional update so two acceptances can't both win the last slot.
Trade-offNo haggling in the app and more state than one booking per load, but shippers book real capacity truck by truck.
Sign-in for people without email
Anyone can sign up with a phone number and a 4-digit PIN, and owners add drivers by phone. PINs are hashed, obvious ones refused, and every 5 wrong tries locks login twice as long as the last, up to a day. Email codes are stored only as hashes and expire in 15 minutes.
Trade-offWithout SMS a number isn't confirmed; identity verification ties the account to a real person.
Record payments, never hold the money
Shippers pay owners with their own bank or wallet app and record it, and only payments the owner confirms count. Owners pay FLITO's monthly fee the same way, checked by an admin.
Trade-offConfirmation is manual without a gateway, but FLITO needs no merchant account and never touches trip money.
Real roads on free services
Distances and routes come from an OSRM server, cached for a week and switchable to straight-line estimates. Arrival times use the slower of OSRM's car time and 28 km/h, a loaded truck's pace.
Trade-offA third-party dependency, kept optional and cached.
04Lessons
What was hard, and what I learned
What was hard
- Keeping a booking correct when shipper, owner and driver each change different parts of it, across several trucks per load.
- Testing email, uploads, push and routing without calling any of them: external services are mocked and MongoDB runs in memory.
- Working in Nepal's calendar and addresses: fees by Nepali month, invoices numbered per Nepali fiscal year, wards detected from GPS.
What I learned
- A serious test suite is what lets a developer change a marketplace flow without fear.
- Treat auth codes, uploads and third-party calls as untrusted boundaries from day one.
- Build for the least technical user first: phone + PIN sign-in, Nepali first and a one-button driver screen.
05Outcome
Where it landed
A deployed marketplace with a public site, four ways to sign in, KYC, a live trip map, recorded payments, PDF invoices and an audited admin console, backed by 629 automated tests.
In their words
FLITO is genuinely easy to use. Having it in both English and Nepali means everyday users like me can find our way around without any trouble. The live map and the rest of the features are well thought out, and you can tell a creative builder made it.
I really like Sanjay Gupta’s idea and the work he has put into it, and I’m excited to keep working with him.

Subash ShahUser, FLITO