fastify-prisma icon indicating copy to clipboard operation
fastify-prisma copied to clipboard

Basic Fastify app using Prisma as an ORM

Fastify + Prisma

  • A basic setup of a Fastify app using Prisma to interact with Postgres.

Setup

  • Rename .env.example to .env and replace the placeholder values in DATABASE_URL with the actual values of your database instance.

Commands

  • yarn dev

Runs the app in dev mode by default on http://localhost:4000.

Todo

  • [ ] Add migrations
  • [ ] Refactor error handling
  • [ ] Validate request body (zod)
  • [ ] Add better logging in development