Do Rent•2026

Rental Property Manager

A full-stack rental platform where landlords list and manage properties and tenants browse, shortlist and message them. Every listing goes through a six-step wizard that saves drafts, and landlords and tenants talk through live in-app chat.

  • Next.js (App Router)
  • TypeScript
  • Tailwind CSS
  • Radix UI
  • Leaflet
  • Next.js Server Actions
  • Route handlers (SSE)
  • Prisma ORM
Do Rent dashboard showing rental property listings

Case study

The problem and how I built it 

What the app solves, and the pieces that make it work.

The problem

Small landlords in India still manage rentals through WhatsApp groups, phone calls and spreadsheets. Listings are scattered, details go missing, and there is no record of who said what to whom.

A property listing is also more complicated than it looks: location, pricing, room counts, amenities, house rules, photos and availability dates. Put all of that in one long form and most people give up halfway.

How I built it


  • Three roles (tenant, landlord and admin) with credential login through NextAuth v5, passwords hashed with bcrypt, and authorization checked on the server for every action.
  • A six-step listing wizard. Each step saves to a Zustand draft store, so a landlord can stop and come back later without losing anything.
  • One Zod schema for the whole listing. Each wizard step validates only its own slice of that schema, so the rules for a field can never differ between the step that collects it and the server action that saves it.
  • Real-time chat between tenants and landlords using Server-Sent Events from a Next.js route handler, with chat rooms and messages stored in MongoDB.
  • Photo uploads through ImageKit. Uploads are tagged as temporary until the listing is submitted, so images from abandoned drafts can be cleaned up without touching real data.
  • A Leaflet map for picking and showing property locations, plus validation for Indian PIN codes, coordinate ranges, minimum area and pricing floors.

Under the hood

Design decisions 

The choices that shaped the code, and what they cost.

Partial updates that never erase data

Prisma treats an explicit null as "clear this field". An edit form that sends untouched fields as null would wipe data the landlord never changed. I wrote a filter that strips null, undefined and blank strings but keeps 0 and false, because "zero halls" and "no pets" are real answers. That function is the reason the project has tests.

Prisma on top of MongoDB

A listing is naturally a document: nested location, pricing, specs and rules, plus arrays of photos. MongoDB fits that shape, and Prisma gives a generated, fully typed client, so the same listing type flows through the wizard, the Zod schema and the server action with compile-time checks. The trade-off is that Prisma's MongoDB support has no joins.

Server-Sent Events instead of WebSockets

Chat messages only need to stream from server to client; sending a message is a normal server action. SSE runs over plain HTTP, works with Next.js route handlers, and avoids running a separate WebSocket server.

Results

Stack and outcome 

What it runs on, what it does today, and what I would build next.

Tech stack

Frontend
  • Next.js (App Router)
  • TypeScript
  • Tailwind CSS
  • Radix UI
  • Leaflet
Backend
  • Next.js Server Actions
  • Route handlers (SSE)
  • Prisma ORM
  • MongoDB
Auth & data
  • NextAuth v5
  • bcrypt
  • Zod
  • Zustand
  • ImageKit
Quality
  • Vitest (35 tests)
  • GitHub Actions CI

Outcome

  • Landlords can create, save as draft, edit and publish listings with photos and a map location.
  • Tenants and landlords message each other in real time inside the app.
  • 35 Vitest tests cover the logic most likely to corrupt data silently: the update filter, signup validation and listing validation. CI runs them on every push and pull request.

What's next

  • Pagination on property listings.
  • Proper full-text search in place of the generated search field.
  • Integration and end-to-end tests on top of the current unit tests.

Lets create something amazing together

Ready to bring your vision to life? Get in touch!