DispatchTrack

A dispatch platform where dispatchers assign jobs, drivers update them from their phones, & the server decides what's allowed.

React 19 / TypeScriptASP.NET Core 10PostgreSQLRedisDockerGitHub Actions

Demo logins for each role are on the login page. The free tier sleeps when idle, so the first load can take 30–50 seconds.

DispatchTrack dispatcher dashboard showing jobs and driver status

The problem

Small logistics operations often run dispatch through WhatsApp messages & spreadsheets. Nobody can see where each job stands, two people can overwrite each other's changes, & there's no answer to "who changed this, & when?"

I built DispatchTrack to replace that, & to prove I could take a full stack application from design to a live deployment.

Who uses it

  • Admin manages users & has full visibility.
  • Dispatcher creates & assigns jobs & watches them on a live dashboard.
  • Driver uses a mobile-first portal to work through assigned jobs.
System Topology & Interaction
End-to-End Architecture
Client Tier React 19 & TypeScript

Responsive Dispatcher dashboard & mobile-first driver portal consuming REST endpoints with Axios & JWT.

Application API ASP.NET Core 10

Server-enforced job state machine, optimistic concurrency validation, and rotating refresh token auth.

Data & Caching PostgreSQL & Redis

Neon-hosted PostgreSQL with xmin system row-versioning and Upstash Redis cache-aside for live queries.

Key decisions

A job state machine enforced on the server

A job can only move through valid states, so a driver can't mark something delivered before it was picked up. The rules live in the API, not just the UI, so they can't be bypassed from the browser. Every change is written to an audit history.

  1. Created
  2. Assigned
  3. Picked up
  4. In transit
  5. Delivered

Optimistic concurrency with PostgreSQL xmin

If two dispatchers edit the same job concurrently, the second save is rejected with a concurrency exception instead of silently overwriting changes, verified with integration tests.

JWT with rotating, httpOnly refresh tokens

Access tokens are short-lived (15 minutes), while single-use refresh tokens rotate on each exchange and are stored in httpOnly secure cookies to prevent JavaScript XSS exposure.

Redis cache-aside for the dashboard

The dashboard is the highest-traffic query path, so results are cached using a cache-aside strategy and invalidated on job status mutations to eliminate unnecessary DB load.

Decisions written down

I recorded 5 Architecture Decision Records in the repo, each with the context, the options I considered & the trade-offs. Read the ADRs on GitHub.

How I built & shipped it

  • Testing: 50 xUnit integration tests.
  • CI/CD: GitHub Actions builds, tests & deploys on every push.
  • Hosting at $0 a month: one Docker container on Render, with Neon for PostgreSQL & Upstash for Redis.
  • Pace: built in 3–5 hours a week, alongside my studies & a full-time developer job.
Production Pipeline
CI / CD & Cloud
Quality Gate GitHub Actions CI

Automated build and 50 xUnit integration tests running on every push before deployment authorization.

Containerization Docker Multi-Stage

Lean Linux container packaging ASP.NET Core runtime and pre-built React static assets into a single deployable image.

Cloud Infrastructure Render + Neon + Upstash

Zero-cost production infrastructure with managed SSL, serverless PostgreSQL, and low-latency cloud Redis.

What went wrong

The frontend was the hardest part, & it still is. My background is C# & Blazor, where the same language runs on both sides. Moving to React & TypeScript meant learning a different way of thinking about state, data fetching & re-rendering at the same time as building a real application.

One subtle challenge was keeping local React state synchronized when network latency caused optimistic status updates to race against server-side validation. Structuring explicit status boundaries and relying on API-enforced state transitions eliminated inconsistent UI states.

The lesson I took from it: I treat the frontend as its own discipline now, not a thin layer over the backend, & I'm still filling the gaps (see below).

What I'd do next

  • Real-time updates. The dashboard polls on an interval today. I'd move to SignalR, which I've used in SmartGear, for live updates.
  • Map view & trips. Not built yet. I've built a Leaflet/OpenStreetMap route planner at work, so this is the natural next step.
  • Frontend tests. The backend is well covered; the React side isn't tested yet.
  • Cold starts. The free tier sleeps when idle. That's the trade-off for $0 hosting.

I'm open to Full-Stack/.NET Developer roles & freelance software projects. If this project is the kind of thing your team or business needs, let's talk.