Skip to content

An easy-to-use starter kit for NestJS, integrating Prisma, PostgreSQL, and Swagger, perfect for jump-starting your backend development.

Notifications You must be signed in to change notification settings

Ryan-yang125/nestjs-prisma-postgresql-starter-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ad2a7a8 Β· Jul 11, 2023

History

4 Commits
Jul 11, 2023
Jul 11, 2023
Jul 11, 2023
Jul 11, 2023
Jul 11, 2023
Jul 11, 2023
Jul 11, 2023
Jul 11, 2023
Jul 11, 2023
Jul 11, 2023
Jul 11, 2023
Jul 11, 2023
Jul 11, 2023
Jul 11, 2023

Repository files navigation

NestJS Prisma Postgresql Starter Kit

πŸš€ A quick and comprehensive nestjs starter kit powered by Prisma, PostgreSQL, and Swagger, perfect for backend rookies to rapidly construct a robust backend server.

I'm looking forward to a great nestjs starter kit or template which can help me quickly figure out how to build a real world backend server, then I found this blog: https://www.prisma.io/blog/nestjs-prisma-rest-api-7D056s1BmOL0, and implement it.

It's a good starter kit for backend rookies like me, to combine db like postgresql, ORM like prisma, Api doc like swagger together, also with many concepts in backend like dto, entity and so on.

Features

  • πŸ’Ό Basic REST API implemented, ideal for starting any project.
  • πŸŽ› Input validation and transformation to ensure data integrity.
  • 🚦 Error handling for better fault tolerance.
  • πŸ“œ Swagger for generating and maintaining excellent API documentation.
  • 🌐 Relation data handling made easy.
  • πŸ” Built-in authentication using Passport and passport-jwt.
  • πŸ— Structured around well-established best practices, which helps to maintain code quality even in larger projects.
  • ⏰ Save time by avoiding boilerplate code, so you can focus on what matters: your business logic.
  • πŸ”„ Encourages agile development: easy to refactor and expand as your project evolves.

Setup and Run

npm install
docker-compose up -d
npx prisma migrate dev
npm run start:dev

Concepts Used

  • Contoller
  • Service
  • Module
  • DTO
  • Entity
  • Pipes
  • Guards
  • Interceptors
  • Decorators
  • Providers
  • Exception Filters

Stack

  • NestJS as a core framework.
  • Prisma as an ORM.
  • PostgreSQL for the database.
  • Swagger for API documentation.
  • Passport and passport-jwt for authentication.

About

An easy-to-use starter kit for NestJS, integrating Prisma, PostgreSQL, and Swagger, perfect for jump-starting your backend development.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published