page:blueprints:hospitality:vendor portal:next js

Hospitality: Vendor Portal Using Next.js

Summary

A vendor portal blueprint for hospitality built with Next.js on Ample. Domain schema:

Public information includes room types, amenities, rates, property location, policies, events, and dining. Guest identity documents and payment details are kept out of scope until handling is reviewed.

Resource Requirements

Infrastructure Requirements

  1. Compute
    • Summary: Apps run in isolated x86_64 Firecracker microVMs that auto-pause when idle and wake on request; sizes are the priced VM sizes.
  2. Postgres
    • Summary: Managed PostgreSQL 16 runs in its own microVM and is auto-provisioned when an app needs a database and no DATABASE_URL is supplied.
  3. S3-compatible object storage
    • Summary: Buckets are S3-compatible with issued credentials; PutObject and GetObject are verified by canary. Other S3 operations are not verified.

Workflow Steps

  1. Model the hospitality domain: Create the tables room_types, inventory_movements, bookings, booking_lines, document_access.
  2. Model vendors scoped to the agency with roles.
  3. Authorize document access by vendor and role (401, 403 negative tests).
  4. Store vendor documents in the private bucket.
  5. Deploy and verify the negative tests and an authorized download.
  6. Run the synchronous deploy once and read the result.
  7. Run the pattern self-test(s) from the example (/p/private-document-library) and your own acceptance checks for the hospitality workflow.

Success Checks

Limitations

Cost Estimate

Next Actions

  1. Browse the catalog index.
  2. Search published recipes by intent, stack, and constraints.
  3. Prepare a side-effect-free deployment plan for an authorized project.
  4. Read the existing agent authentication setup.
  5. Browse Hospitality.
  6. Browse Vendor portal.
  7. Browse Next.js.
  8. Browse Deploy web app.