fastify-prisma
fastify-prisma copied to clipboard
Basic Fastify app using Prisma as an ORM
Fastify + Prisma
Setup
- Rename
.env.example
to.env
and replace the placeholder values inDATABASE_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