next js.md

Real estate brokerages: reporting dashboard using Next.js

Summary

A reporting dashboard blueprint for real estate brokerages built with Next.js on Ample. Domain schema: listings (reference, address, price, listing_type, publishing_status, agency_id): property listings with publishing status; agencies (name, license_number, region): agencies or branches; listing_media (listing_id, object_key, cdn_key, sort_order): public media per listing; reports (agency_id, period, object_key, generated_at): agency-scoped reports; exports (id, definition, object_key, row_count, generated_at, authorized_role): generated artifacts and who may download them. Public information: published listings with media, agent and agency profiles, buying and selling guides.

Infrastructure requirements

Prerequisites

Steps

  1. Model the real estate brokerages domain. Create the tables listings, agencies, listing_media, reports, exports. Property listings with publishing status lives in listings; keep the sensitive classes (vendor and buyer identity, offers and negotiations, unpublished listings) out of this schema.
  2. Workflow step 1. Model report definitions scoped to the agency
  3. Workflow step 2. Generate report artifacts from queries and store them with metadata
  4. Workflow step 3. Authorize downloads (401 without identity)
  5. Workflow step 4. Deploy and verify an authorized export and the rejected anonymous request
  6. Deploy. Run the synchronous deploy once and read the result. Re-running with no change is a no-op.
  7. Verify. Run the pattern self-test(s) from the example (/p/generated-downloads) and your own acceptance checks for the real estate brokerages workflow.

Tested examples

Success checks

Limitations

Cost estimate

Estimated 10.00 USD per month (size prices from pricing.toml at build revision a1b8c38919e59cd035ebabaced73cf84ece24371).

Verification evidence