All work

Case study 04 Logistics

Fly Package

A delivery management system that connects suppliers, couriers and managers — and assigns each order to the nearest available courier.

Type
Academic full-stack project
Roles
Supplier · Courier · Manager
Stack
React, Node.js, Express, MongoDB
Artifacts
UML use cases & data model

fig. 04 — nearest available courier

new order · pickup nearest available available busy deliveries manager view pending assigned in transit delivered couriers supplier · courier · mgr
Illustrative diagram — not a product screenshot.

Deliveries break down at the hand-offs: who takes the order, who is actually free, and where everything stands right now.

Suppliers need to submit and track orders. Couriers need clear assignments and a simple way to update status. Managers need to approve suppliers, manage couriers and see the whole operation.

  • 01Domain modelingUse-case and data modeling for suppliers, couriers, managers, orders and locations.
  • 02BackendREST API on Node.js and Express, with a MongoDB schema for orders, couriers and locations.
  • 03Courier selectionNearest-available-courier assignment using geospatial queries.
  • 04DashboardsReact interfaces for each role, including logistics dashboards for managers.

The original design artifacts below show the actors and use cases, and the data model behind them — including courier availability and status, and order origin and destination locations.

01

Choosing the right courier

The best courier is the closest one who is actually available — not just the closest.

02

Consistent delivery states

Orders move through states that suppliers, couriers and managers all depend on.

03

Three roles, one system

Each role needs different views and permissions over the same data.

04

Operational visibility

Managers need a live picture of orders, couriers and supplier activity.

  1. Model locations explicitlyOrders carry origin and destination locations; couriers carry availability and status.
  2. Select the nearest available courierWhen a supplier submits an order, a geospatial query finds the closest courier whose status is available.
  3. Drive the delivery lifecycleCouriers accept or reject orders and update their status, and suppliers are notified as orders progress.
  4. Give managers controlManagers confirm or reject new suppliers, manage couriers, check payments and monitor deliveries from dashboards.
Frontend
  • React
  • CSS
Backend
  • Node.js
  • Express
  • REST APIs
Data
  • MongoDB
  • Geospatial queries
Design
  • UML use cases
  • Class diagrams

Modeling the domain first — actors, states and locations — made the hardest feature, courier selection, almost straightforward.

  • Availability is as important as distance in dispatch logic.
  • Explicit state models keep three different user roles in sync.
  • Design artifacts are worth keeping: they explain the system faster than the code.

Demo available on request