Paying client · Full-stack delivery · 2026

New Home Imóveis

A Portuguese-language real-estate site for a client in Rio de Janeiro: property search, listing pages, WhatsApp inquiries that are saved before the hand-off, a financing estimator, and an admin area for the team to manage listings and leads.

New Home Imóveis property discovery home page
Client deliveryBuilt for a paying real-estate agency
No lost leadsEvery inquiry is stored before WhatsApp opens
RLS + TOTPWrites limited to an admin allowlist, two-factor login

The problem

The agency's buyers ask about properties on WhatsApp, and the team needed a site that sends them there without losing track of who asked about what. A link straight to WhatsApp leaves no record if the conversation never starts. The team also needed to publish and edit listings themselves, without a developer, and without exposing customer contacts.

What I built

  • Public home, listing search with filters (purpose, type, region, price, bedrooms) and pagination, property pages, company, financing and privacy pages.
  • Contact requests written to the database before the WhatsApp hand-off, so a lead is never lost.
  • Favourites saved per browser, resolved against live listings.
  • First-party, anonymous conversion counters instead of third-party analytics or tracking cookies.
  • An admin area with Supabase authentication, TOTP two-factor login, listings CRUD and image uploads.
  • Per-listing Open Graph previews served by a Vercel function, so shared links show the property.

System shape

Buyer → React site (bundled with esbuild, no CDN scripts) ├─ listing search / property page ← Supabase (read) └─ inquiry → leads table (insert only) → WhatsApp Admin → login + TOTP → listings CRUD, uploads, leads writes allowed only through public.is_admin()

Engineering decisions

  • Made the database the security boundary: Row Level Security on properties, leads, events, admin users and Storage, with every write going through a security definer admin check with a pinned search_path.
  • Anonymous visitors can insert leads and events but read nothing back; only administrators can read them.
  • Bundled React and supabase-js from npm with script-src 'self', so a compromised CDN cannot inject script into the admin session; CSP, HSTS and a restrictive Permissions-Policy on every route.
  • Uploads are re-encoded to WebP in the browser, and the storage bucket enforces its own type and size limits.
  • Designed around the client's existing WhatsApp habit instead of forcing a new sales tool.

Where it stands

Deployed on Vercel. Open pull requests prepare the launch: accessibility and UX audit fixes with CI, and routing leads through a server endpoint with spam protection and email alerts.

What I would improve next

Merge the server-side lead endpoint with spam protection and email alerts, add end-to-end tests for the inquiry flow, and measure how many inquiries turn into conversations.