Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryands17/fastify-prisma
Basic Fastify app using Prisma as an ORM
https://github.com/ryands17/fastify-prisma
fastify prisma
Last synced: 16 days 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 (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-25T23:23:58.000Z (27 days ago)
- Last Synced: 2024-11-26T00:25:42.082Z (27 days ago)
- Topics: fastify, prisma
- Language: TypeScript
- Homepage:
- Size: 240 KB
- Stars: 26
- Watchers: 3
- 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