Skip to content

rdnsan/fastify-with-prisma

Repository files navigation

Fastify with Prisma ✨

What are we using?

  • Fastify - Web Server
  • Prisma - Database ORM
  • Zod - Request and response validation
  • Swagger - API Docs
  • TypeScript
  • PostgreSQL - Database
  • Docker

Setup Database

  cd database
  docker-compose up -d

Initialise prisma

  yarn prisma init --datasource-provider postgresql

Migrate the schema

  yarn prisma migrate dev --name init

dependencies

  @prisma/client fastify fastify-zod @fastify/jwt @fastify/swagger zod zod-to-json-schema

devDependencies

  ts-node-dev typescript @types/node eslint prettier prisma

About

Explore Fastify, Prisma, TypeScript, Zod, PostgreSQL, Swagger UI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published