
Tech Stack
Description
AREstate is a full-stack real-estate platform for browsing and listing properties, booking viewing appointments, managing accounts, and searching live market listings with AI. It is my re-architecture of Aayush Vaghela's open-source MERN project, which was split into an Express + MongoDB backend and separate Vite React frontend and admin apps.
I merged the three apps into a single Next.js 16 App Router project that serves the public site, the admin panel and the REST API, and moved the data layer from MongoDB to PostgreSQL with Drizzle ORM and committed SQL migrations. API responses keep their original shape and migrated records keep their original IDs, so the existing UI code and old property URLs continue to work.
Running on Vercel's serverless functions meant replacing everything that assumed a single long-lived Express server: in-memory rate limits and caches moved into Postgres, node-cron jobs became Vercel cron routes, and email moved from Nodemailer to Resend. The UI was rebuilt with shadcn/ui and rebranded as AREstate.
- Consolidated an Express + MongoDB backend and two Vite React apps into one Next.js 16 / React 19 / TypeScript application deployed on Vercel.
- Ported every Express route to Next.js route handlers behind a shared wrapper (request IDs, logging, rate limiting, error responses), keeping the original response contract.
- Migrated the schema to PostgreSQL with Drizzle ORM (12 tables including users, properties, appointments, AI models, activity logs and caches), keeping Mongo-style IDs so legacy data and URLs still resolve.
- Moved rate limits and AI search/trend caches from in-memory and Mongo stores into Postgres so they hold across serverless instances.
- Replaced node-cron with Vercel cron routes (listing expiry, auto-unsuspend, cache cleanup) authenticated with a shared secret.
- Kept the AI Property Hub's streaming search working on serverless by running the work in Next.js after(), so results finish and get cached even if the client disconnects.
- Switched email to Resend and image uploads to the ImageKit Node SDK, and rebuilt the UI with shadcn/ui and Tailwind CSS 4.
Page Info
Home
Landing page introducing AI-assisted property discovery for Indian cities, with entry points to the listings and the AI Property Hub.

AI Property Hub
Users describe the city, area, budget and home type, and pick an LLM. Live listings from 99acres, MagicBricks and Housing.com are scraped via Firecrawl and ranked by server-side models, with progress streamed back to the page.

About
Rebranded marketing pages rebuilt with shadcn/ui and Tailwind CSS 4.
