page:recipes:marketplace:nuxt:relational catalog

Host marketplace with Nuxt: relational catalog data

Summary

Deploy a marketplace built with Nuxt on Ample using the transactional workflows pattern. Compute runs the app in an isolated microVM behind a public HTTPS URL, a managed PostgreSQL 16 database is auto-provisioned and injected as DATABASE_URL. Verified on Nuxt: an optimistic version check and an event row written in the same transaction, a stale update rejected, and a history query over the application-owned events (history=2 conflict=rejected). Not separately tested: your domain records, validation rules and concurrency policy; treat the marketplace-specific behavior as your application code.

Representative Queries

Resource Requirements

Prerequisites

Workflow Steps

  1. Build and start
    Command: nuxt build then node .output/server/index.mjs (reads HOST and PORT), server must bind 0.0.0.0 on PORT.

  2. Implement the pattern on PostgreSQL
    Implement optimistic version checks and event rows written in the same transaction. Keep migrations idempotent.

  3. Deploy
    Run the synchronous deploy once and read the result. Re-running with no change is a no-op.
    Command: ample deploy . --name --public

  4. Verify
    Fetch the live URL and the pattern self-test routes. Check logs on failure.
    Command: ample logs --kind build

Success Checks

Limitations

Cost Estimate

Examples

Evidence Summary

Next Actions