https://github.com/ryands17/fastify-prisma
Basic Fastify app using Prisma as an ORM
https://github.com/ryands17/fastify-prisma
fastify prisma
Last synced: about 1 month ago
JSON representation
Basic Fastify app using Prisma as an ORM
- Host: GitHub
- URL: https://github.com/ryands17/fastify-prisma
- Owner: ryands17
- Created: 2021-01-26T06:23:41.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-03T16:42:50.000Z (about 1 month ago)
- Last Synced: 2025-04-03T17:35:16.644Z (about 1 month ago)
- Topics: fastify, prisma
- Language: TypeScript
- Homepage:
- Size: 244 KB
- Stars: 26
- Watchers: 2
- Forks: 7
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fastify + Prisma
- A basic setup of a [Fastify](https://www.fastify.io/) app using [Prisma](https://www.prisma.io/) 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](http://localhost:4000).
## Todo
- [ ] Add migrations
- [ ] Refactor error handling
- [ ] Validate request body (zod)
- [ ] Add better logging in development