Skip to content

Repository files navigation

Prisma Compute deploy example

A small Hono REST API using Prisma ORM and Prisma Postgres, ready to deploy to Prisma Compute with one click.

Deploy

Deploy to Prisma Compute

Clicking the link copies this repository into a new repository under your GitHub account, provisions a Prisma Postgres database, sets DATABASE_URL for you, and starts the first deployment. After that, every push to your copy's default branch deploys automatically.

What makes this repository deployable

Prisma Compute deploys any public TypeScript repository that has these files at its root:

  • prisma.compute.json — tells Prisma Compute how to run the app
  • package.json
  • a lockfile (bun.lock, package-lock.json, pnpm-lock.yaml, or yarn.lock)

Run locally

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 db:generate
bun run db:migrate --name init
bun run db:seed
bun run dev

Open http://localhost:8080. The JSON endpoint is available at http://localhost:8080/api/users.

About

One-click Prisma Compute deploy example: Hono + Prisma ORM + Prisma Postgres

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages