A rental management app where managers, tenants and staff each see only their part.

A rent, lease and repair system for a small property team, with separate views for managers, tenants and maintenance staff. AI repair triage with a person in charge, and rent marked paid only by a signed Stripe webhook. Live demo with sample data.

Project typePortfolio build, fictional client
My roleDesign and build
StackNext.js, Supabase, Stripe, Gemini, Vercel
StatusLive demo, sample data, Stripe test mode
Property Rental Manager landing page with one-click demo buttons for each role
Repair request flowFrom the tenant’s report to a finished job
Tenant reportsShort description and up to three photos
Photos cleanedResized and location data removed in the browser
AI suggestionGemini picks a category and priority from a fixed list
Schema checkAnswer validated with Zod, anything else is thrown away
Keyword fallbackIf the AI is down or over its limit, rules suggest instead
Manager confirmsCategory, priority and who does the job
Staff updatesIn progress or done, with notes on the timeline
Tenant sees itStatus and notes on their home screen
4 roles, one databaseRow level security on every tableRent marked paid only by a signed Stripe webhook

The problem: rent, leases and repairs live in spreadsheets, WhatsApp and email.

Missed payments

Rent is chased by hand, so it is hard to see who has paid and which charges are overdue.

Lost repair requests

Requests come in by message and email, and nobody knows which ones are still waiting.

Tenants keep asking

Tenants cannot see what is happening with the leak they reported last week, so they call and message for updates.

Live demo: pick a role and you are signed in.

One click signs you in to a shared demo account, no sign up. Try it as the property manager, a tenant or maintenance staff. Paying rent uses the Stripe test card 4242 4242 4242 4242 with any future date and any CVC.

RolesManager, tenant, staff, admin
Sign upNone, one-click demo
Demo dataResets every night, 03:00 UTC
Property manager dashboard: rent collected, occupancy, overdue rent and open repairs (sample data)
Manager dashboard: rent collected, occupancy, overdue rent and repairs
Tenant home: rent due, pay button, repairs and payment history (sample data)
Tenant home: rent due, pay button, repairs and payment history

Portfolio build. Fictional client, sample data, Stripe test mode. No real money moves.

What I built: one system, four roles, each sees only its own part.

Property manager

Properties, units and leases with signed PDFs. Monthly rent charges with overdue tracking, and a triage queue for repairs.

Tenant

Lease, rent due and payment history in one view. Pays rent through Stripe Checkout and reports repairs with photos.

Maintenance staff

Sees only their assigned jobs, moves them to in progress or done, and leaves notes the tenant can read. Nothing financial.

Admin

Invite-only accounts for each role and an audit log of sensitive changes.

Repair request with a triage suggestion waiting for the manager to confirm
Triage: the suggestion waits for the manager. Here Gemini was not used, so the keyword rules suggested it.
Maintenance staff job page with status, timeline and notes
Staff job page: status, timeline and notes the tenant can read

The AI suggests. The manager decides.

When a tenant reports a repair, the server asks Gemini for a category and a priority. The answer has to pass a strict schema, and if the AI is not available the keyword rules take over, so a request is never blocked. Nothing happens until the manager confirms.

1. Gemini gets the request and a fixed list
   of categories and priorities
2. Answer parsed with a strict Zod schema
3. Bad answer, timeout or hourly limit
   -> keyword rules suggest instead
4. Suggestion saved with its source: ai or rules
5. Manager confirms or changes it,
   then picks who does the job

Rent is marked paid only by Stripe

The app never trusts the browser to say rent was paid.

  1. Tenant clicks PayA pending payment is created and Stripe Checkout opens
  2. Stripe sends a signed eventTo the webhook, not the browser
  3. Signature verifiedAnything unsigned or wrong is refused
  4. Payment recordedA database function checks the amount and currency and is safe to call twice

Stripe runs in test mode. A live key is refused at startup.

Phone friendly: a bottom tab bar on phones, a sidebar on desktop.

Manager dashboard on a phone
Manager dashboard on a phone
Tenant home on a phone with the bottom tab bar
Tenant home on a phone
Maintenance staff jobs on a phone
Staff jobs on a phone

Key decisions and why I made them.

Security in the database

Every business table carries an org id with row level security. pgTAP tests prove one organization cannot read another, and each role sees only its own rows.

Invite only

Sign up is closed. Invite tokens are single use, stored only as a hash and valid for 7 days. Roles come from the database, never from the login token.

Tested end to end

Playwright runs the main flows in CI on every pull request: the tenant reports a repair, the manager triages it and staff finish the job. It also checks that rent is paid only through a signed webhook.

A demo that resets itself

A nightly job rebuilds the sample portfolio at 03:00 UTC, so anyone can try every role without breaking it for the next person.

More safety details

Lease PDFs and repair photos live in private storage and are only served through short-lived signed links.

The audit log is insert-only, enforced in the database.

Rent charges are created and marked overdue by scheduled jobs inside Postgres. Clients cannot write charges or payments.

No secrets in the repo. The example env file has placeholders only.

Try it or run it: live demo and full source.

The live demo needs no sign up. The source code, architecture and data model diagrams and the full setup guide are on GitHub. It runs on free tiers only.

Tech stack

Next.js 16 (App Router)React 19TypeScriptTailwind CSS v4Supabase: Postgres, Auth, Storage, RLS, pg_cronStripe (test mode)Google GeminiResendPlaywrightGitHub ActionsVercel

Run it locally

Needs Node 22, pnpm and Docker. The full guide is in the README.

  1. Installpnpm install
  2. EnvironmentCopy .env.example to .env.local and fill in the local Supabase values
  3. Databasepnpm db:start runs the migrations and loads the sample data
  4. Security testspnpm db:test runs the row level security tests
  5. Startpnpm dev, then sign in with a demo account for any role

Gemini, Resend and Stripe keys are optional locally. Without Gemini, triage uses the keyword rules.