This is a small Hono API that uses Prisma 8 with PostgreSQL. Prisma Composer provisions its database and service, applies its schema, and deploys it to Prisma Compute.
bun install
cp .env.example .env
# Authenticate once, then create a Prisma Postgres database.
bun run compute:login
bun run compute:database:create
# Copy the printed DATABASE_URL into .env.
bun run contract:emit
bun run db:init
bun run db:seed
bun run devOpen http://localhost:8080. The JSON endpoint is available at http://localhost:8080/api/users.
Connect this repository to Prisma Cloud, then push the branch. The included GitHub Actions workflow runs Composer, which provisions Prisma Postgres, applies the Prisma 8 contract, and deploys the Hono service.
bun run compute:connectWhen you change src/prisma/contract.prisma, emit the updated contract and
author a migration before pushing:
bun run contract:emit
bun run migration:plan --name describe-the-change
bun run db:updateAfter connecting, open the running service with:
bun run compute:openEach push creates a build. To stream the full build log, copy the build ID from the GitHub check run and run:
bunx prisma build logs <build-id>