← All projects

Case study · Full-stack · dissertation

RuralAid

An emergency-response platform that connects rural communities to responders in real time.

Role
Sole developer
Stack
React 19 · Supabase · Leaflet · Framer Motion
Live
ruralaid.vercel.app
RuralAid screenshot

The problem

In rural communities, the gap between something going wrong and help arriving is often the problem itself. People need a fast way to report an emergency with their location, and responders need to know about it immediately and talk to the person while they travel.

My role

This was my final-year dissertation and I was the only developer. I designed and built the whole system, from the database policies to the live map, and wrote up its implementation and testing.

What I built

  • Three roles (user, responder, admin) with Supabase Auth and row-level security
  • Real-time responder alerts and in-app chat
  • A live emergency map

Stack

React 19SupabaseLeafletFramer Motion

Key decisions

Security in the database, not the UI

Row-level security policies decide what each role can read, so a responder only ever sees incidents assigned to them. Even a modified client cannot see anyone else's emergency.

Push, not polling

Status changes and chat messages arrive over Supabase realtime channels, so a reporter sees "en route" the moment it happens. The cost is handling reconnects when the signal drops.

Nearest responder by straight-line distance

Haversine distance on coordinates picks the closest available responder. At rural distances it is simple, fast and close enough to road distance to be useful.