This demo showcases how Monk deploys your Next.js backend to containers, PostgreSQL database, and integrates Stripe—all in one go.
Connect Stripe and provide a price to enable checkout
Explore the backend API endpoints powered by Next.js API routes
Check service health, Stripe config, and database connection status
curl /api/healthThis demo uses Monk to automatically provision and configure:
app:
defines: runnable
connections:
database:
runnable: nextjs-stripe-demo/postgres
creds:
runnable: nextjs-stripe-demo/stripe-creds
webhook:
runnable: nextjs-stripe-demo/stripe-webhook
variables:
DATABASE_HOST:
value: <- connection-hostname("database")
DATABASE_PASSWORD:
value: <- secret("postgres-password")
STRIPE_SECRET_KEY:
value: <- secret($stripe_secret_ref)
STRIPE_PRODUCT_ID:
value: <- connection-target("product")
entity-state get-member("product_id")