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

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
Key decisions
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.
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.
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.