Building a REST API with NestJS, PostgreSQL, Swagger and Prisma
Build a complete REST API with NestJS and Prisma, covering validation, relational data, error handling, and authentication.
Building a REST API with NestJS and Prisma
Learn how to build a backend REST API with NestJS, Prisma ORM 7, PostgreSQL and Swagger. Set up the project, model your data, build the API and document it with Swagger. Fully updated for Prisma 7 and NestJS 11.
Building a REST API with NestJS and Prisma: Input Validation & Transformation
Learn how to add input validation and transformation to a NestJS REST API with ValidationPipe, class-validator and ParseIntPipe. Fully updated for Prisma ORM 7 and NestJS 11.
Building a REST API with NestJS and Prisma: Error Handling
Learn how to handle Prisma errors in a NestJS REST API: throw exceptions in controllers and build an exception filter for Prisma error codes like P2002. Updated for Prisma ORM 7 and NestJS 11.
Building a REST API with NestJS and Prisma: Handling Relational Data
Learn how to handle relational data in a REST API built with NestJS and Prisma ORM 7: model a one-to-many relation, build user CRUD endpoints, and exclude sensitive fields from responses.
Building a REST API with NestJS and Prisma: Authentication
Learn how to implement JWT authentication in a NestJS REST API with Prisma ORM 7 and Passport: login endpoint, JWT strategy, auth guards, Swagger integration and bcrypt password hashing.

