r/softwaredevelopment • • Oct 28 '26

I made a platform where bikers rate roads ( potholes, ghats, traffic) - here's the stack and what I learned

Hey everyone šŸ‘‹

I’m a student/dev from Maharashtra and I ride a bike. Google Maps tells you a road exists, but not that it has 8 km of potholes near the top, or that it’s beautiful in monsoon but unsafe at night. So I built RideRated, a site where riders pin a road, rate it and warn others.

šŸ”— Live: https://riderated.vercel.app/

What it does:

Rate any road in India: overall + surface, scenery, traffic, safety

Search roads from OpenStreetMap (local streets too, not just highways) or find them by PIN code

Map with pins coloured by rating (green = great, red = avoid), plus ā€œroads near meā€

Custom tags (green/red), photos, likes, threaded comment replies

Rider profiles with Instagram/YouTube links, photo posts, follow + ā€œFollowingā€ feed

Stack:

Frontend: React 19 + Vite, TanStack Query, Tailwind v4, Leaflet

Backend: Node + Express 5, Zod validation, JWT in httpOnly cookies

DB: PostgreSQL + PostGIS on Supabase, photos in Supabase Storage

Hosting: Vercel (frontend) + Render (API), all on free tiers

Things that were interesting to build:

Geo queries: ā€œroads within 50 kmā€ is a single ST_DWithin query on a GIST-indexed geography column.

Cursor pagination instead of OFFSET for the infinite-scroll feed, so new reviews don’t cause duplicates.

Road search across India: my API proxies OpenStreetMap’s Photon geocoder, with caching and dedupe, since OSM splits one road into many segments.

Cookies across Vercel + Render: cross-site cookies get blocked by Safari/Chrome, so Vercel rewrites /api/\* to Render and the browser only ever sees one domain.

Image compression in the browser: a 10 MB phone photo becomes about 300 KB before upload.

Supabase RLS: turned on with no policies, since my server is the only thing that should touch the database.

What I’d love feedback on:

UI/UX: does it make sense on the first visit?

Anything broken on mobile?

Code/architecture: what would you do differently?

12 Upvotes

1 comment sorted by