Guides / Product demos

Product demos

Create Stable Demo Environments for Stakeholder Reviews

Build a dedicated demo project with predictable catalog, profile, and checkout routes, then connect preview deployments without touching production dependencies.

Mockport Team · Updated September 28, 2026 · 12 min read

What you’ll build

  • A dedicated stakeholder-demo project.
  • Predictable catalog, profile, and checkout fixtures.
  • Separate success and failure scenarios.
  • Preview configuration and a pre-demo checklist.

01

Create a dedicated demo project

Create a project named stakeholder-demo instead of reusing active development fixtures. Its hosted domain becomes the stable dependency for preview builds and review links.

Keep the route list focused on the presentation story. A compact set of core flows and failure variants is easier to rehearse than a broad imitation of the entire product.

Practical note

A dedicated project protects the review from routine fixture edits elsewhere.

02

Prepare catalog and profile fixtures

Add GET /v1/catalog with a small, visually varied static collection. Use stable ids and concise names that exercise cards without distracting edge cases.

Add GET /v1/profiles/:id for a reviewer persona. Resolve demo_reviewer in the preview and keep the response invented and consistent across rehearsals.

demo-profile.json
{
  "id": "demo_reviewer",
  "name": "Jordan Lee",
  "role": "Reviewer",
  "preferences": {
    "currency": "USD",
    "theme": "light"
  }
}

03

Model checkout success and error variants

Add POST /v1/checkout/success with 200 OK and a confirmed-order fixture. Add /v1/checkout/declined with 402 Payment Required and a short recovery message.

Use separate routes rather than editing one response between agenda items. The presenter can choose a scenario through a development-only demo control, and each outcome remains available for rehearsal.

checkout-variants.txt
Success response:
{
  "orderId": "demo_order_100",
  "status": "confirmed",
  "total": 42
}

Declined response:
{
  "error": "payment_declined",
  "message": "Choose another payment method."
}

04

Connect the preview deployment

Set the preview’s API variable to stakeholder-demo.mockport.dev. Keep production in a separate scope with its own explicit value and reject mock domains in production configuration.

Deploy the exact review commit, open each major route from the hosted preview, and verify the browser uses the expected API URL.

preview-environment.txt
# Vite preview:
VITE_API_URL=https://stakeholder-demo.mockport.dev
VITE_DEMO_MODE=true

# Vite production:
VITE_API_URL=https://api.example.com
VITE_DEMO_MODE=false

# For Next.js, use NEXT_PUBLIC_API_URL
# for browser-visible API configuration.
Practical note

Never let a demo depend on customer data or production credentials. Public environment variables must not contain secrets.

05

Rehearse a controlled review story

Begin with the catalog, open demo_reviewer, and complete success checkout before showing the declined recovery path. A consistent order lets stakeholders focus on product decisions.

Keep direct URLs for each milestone in presenter notes. If a tab is lost, return to the intended state without reconstructing earlier steps.

  • Catalog displays the expected demo products.
  • Profile resolves demo_reviewer.
  • Success produces demo_order_100.
  • Declined preserves the cart and recovery action.
  • No screen displays production accounts or customer data.

06

Run the pre-demo checklist

Use the same network and device as the meeting when possible. Freeze route edits during the review and designate one teammate to handle necessary changes.

Record product feedback separately from fixture changes. Preserve a known-good baseline between reviews.

  • Confirm preview commit and environment scope.
  • Test every route from the deployed preview.
  • Open milestone links in fresh tabs.
  • Check success/error copy at presentation size.
  • Close unrelated accounts and notifications.
  • Keep screenshots or recordings as a fallback.
  • Announce changes before editing shared routes.
Practical note

The endpoint is a presentation dependency, not a stateful demo database. Make every outcome deliberate and repeatable.

Keep the contract predictable, then keep building.

A dedicated hosted project gives stakeholder reviews a controlled API story without production dependencies. Stable fixtures, explicit preview values, and rehearsal make the demo repeatable.

Build alongside the guide

Put your next endpoint online in minutes.

Start a 14-day trial. Team workspaces are $9/month with 5 project domains, 15 routes per project, and up to 5 seats.

Start free trial →