🌐
Prisma
prisma.io › home › nestjs › nestjs › nestjs
How to use Prisma ORM and Prisma Postgres with NestJS | Prisma Documentation
It is used as an alternative to writing plain SQL, or using another database access tool such as SQL query builders (like knex.js) or ORMs (like TypeORM and Sequelize). Prisma currently supports PostgreSQL...
🌐
Medium
medium.com › @hrynkevych › prisma-orm-and-postgresql-with-nestjs-bf0a551fcaff
Prisma ORM and PostgreSQL with NestJS | by Mykhailo (Michael) Hrynkevych | Medium
August 30, 2024 - Schema-Driven Development: Prisma’s schema-first approach aligns well with NestJS’s modular architecture, enabling clear, maintainable database structures that evolve with the application. Efficient Data Management: PostgreSQL’s advanced capabilities, such as support for complex queries and strong transactional integrity, paired with Prisma’s efficient query generation, make this setup ideal for high-performance applications.
🌐
NestJS
docs.nestjs.com › recipes › prisma
Prisma | NestJS - A progressive Node.js framework
It is used as an alternative to writing plain SQL, or using another database access tool such as SQL query builders (like knex.js) or ORMs (like TypeORM and Sequelize). Prisma currently supports PostgreSQL, MySQL, SQL Server, SQLite, MongoDB and CockroachDB (Preview).
🌐
Prisma
prisma.io › nestjs
Enterprise-ready database for NestJS apps - Prisma ORM
Build high-performance and type-safe NestJS apps with Prisma's developer-friendly database tools: The world's most popular TypeScript ORM and the first serverless database without cold starts.
🌐
Prisma
prisma.io › blog › nestjs-prisma-rest-api-7D056s1BmOL0
Build a REST API with NestJS, Prisma 7, PostgreSQL and Swagger
June 3, 2022 - In this tutorial, you will learn how to build the backend REST API for a blog application called "Median" (a simple Medium clone). You will get started by creating a new NestJS project. Then you will start a PostgreSQL database and connect to ...
🌐
GitHub
github.com › prisma › blog-backend-rest-api-nestjs-prisma
GitHub - prisma/blog-backend-rest-api-nestjs-prisma: A simple backend REST API for a blog built using NestJS, Prisma, PostgreSQL and Swagger. · GitHub
A simple backend REST API for a blog built using NestJS, Prisma, PostgreSQL and Swagger.
Starred by 189 users
Forked by 45 users
Languages   TypeScript 93.6% | JavaScript 6.4%
🌐
DEV Community
dev.to › vishnucprasad › establishing-postgresql-connection-with-prisma-in-nestjs-a-comprehensive-guide-with-bookmark-api-example-2960
Establishing PostgreSQL Connection with Prisma in NestJS: A Comprehensive Guide with Bookmark API Example - DEV Community
August 17, 2023 - With the Bookmark API implemented, it’s time to run the application. Start the PostgreSQL container using Docker Compose: ... Your NestJS application with Prisma integration and the Bookmark API is now up and running.
🌐
GitHub
github.com › notiz-dev › nestjs-prisma-starter
GitHub - notiz-dev/nestjs-prisma-starter: Starter template for NestJS 😻 includes GraphQL with Prisma Client, Passport-JWT authentication, Swagger Api and Docker
docker run -d -t -p 3000:3000 --env-file .env nest-prisma-server · Now open up localhost:3000 to verify that your nest server is running. When you run your NestJS application in a Docker container update your .env file · - DB_HOST=localhost # replace with name of the database container + DB_HOST=postgres # Prisma database connection + DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DB_HOST}:${DB_PORT}/${POSTGRES_DB}?schema=${DB_SCHEMA}&sslmode=prefer
Starred by 2.5K users
Forked by 366 users
Languages   TypeScript 96.7% | JavaScript 1.8% | Dockerfile 1.3% | Shell 0.2%
🌐
DEV Community
dev.to › xavier_carreragimbert › setting-up-nestjs-with-prisma-without-the-headache--47n2
Setting Up NestJS with Prisma (Without the Headache) - DEV Community
November 24, 2025 - pnpm dlx @nestjs/cli@11.0.0 new nestjs-prisma-test ... # docker-compose.yml version: '3.8' services: postgres: image: postgres:13.5 restart: always environment: - POSTGRES_USER=myuser - POSTGRES_PASSWORD=mypassword volumes: - postgres:/var/lib/postgresql/data ports: - '5432:5432' volumes: postgres:
Find elsewhere
🌐
DEV Community
dev.to › manendrav › how-to-set-up-nestjs-with-prisma-and-postgresql-2026-complete-guide-2da7
How to Setup NestJS with Prisma and PostgreSQL (2026 Complete Guide) - DEV Community
March 3, 2026 - Inside the src directory, create a new file called prisma.service.ts and add the following code to it: import { Injectable } from "@nestjs/common"; import { PrismaClient } from "../generated/prisma/client.js"; import { PrismaPg } from "@prisma/adapter-pg"; @Injectable() export class PrismaService extends PrismaClient { constructor() { const adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL as string, }); super({ adapter }); } }
🌐
DEV Community
dev.to › dilumdarshana › connecting-database-with-nestjs-using-prisma-orm-5f7h
Connecting Database with NestJS Using Prisma ORM - DEV Community
April 6, 2025 - Today, let's focus on connect with the PostgreSQL database - a powerful popular relational database. Obviously, we can use native drivers to connect with any databases from NestJS app. But, most of time, it is better to use an ORM, since, it is more time efficient and maintainable. Today, let's focus on Prisma ORM, one of the most modern and developer-friendly ORMs, to connect PostgreSQL with a NestJS application.
🌐
Tomray
tomray.dev › nestjs-prisma
Ultimate Guide: How to use Prisma with NestJS - Tom Ray
November 29, 2022 - They're not yet connected in anyway, but you now have your local Postgres server running (via Docker Compose) as well as your NestJS app server running locally on your machine. You can think of Prisma as a bridge between your database and your backend services - they provide a set of tools that make working with databases much easier.
🌐
GitHub
github.com › the-pujon › nestjs-prisma-postgres-starter
GitHub - the-pujon/nestjs-prisma-postgres-starter: Production-ready NestJS starter with PostgreSQL and Prisma. Includes clean architecture, environment-based config, database migrations, validation, and scalable project structure. · GitHub
Production-ready NestJS starter with PostgreSQL and Prisma. Includes clean architecture, environment-based config, database migrations, validation, and scalable project structure. - the-pujon/nestjs-prisma-postgres-starter
Starred by 52 users
Forked by 13 users
Languages   TypeScript 97.9% | HTML 1.2%
🌐
Medium
medium.com › @csksarathi07 › setting-up-a-nestjs-backend-with-postgresql-and-prisma-step-by-step-guide-391bdfccb70e
Setting Up a NestJS Backend with PostgreSQL and Prisma (Step-by-Step Guide) | by Parthasarathi A S | Medium
April 2, 2025 - First, make sure you have Node.js installed. Then, install the NestJS CLI globally: ... Prisma is an ORM (Object-Relational Mapping) tool that simplifies database interactions. Install Prisma and the necessary database client for PostgreSQL:
🌐
Vercel Community
community.vercel.com › help
How to connect Postgres with Prisma/Nest.js on Vercel frontend/API? - Help - Vercel Community
August 11, 2025 - If I’m using Vercel to host my frontend (like a Next.js app) and my API routes, how can I still connect to a database like PostgreSQL using tools like Prisma or NestJS?
🌐
Medium
medium.com › @tekrajpant224 › develop-graphql-api-server-with-nestjs-prisma-and-postgresql-37d26e85fc27
Create GraphQL API with NestJS, Prisma, and PostgreSQL | by Tek Raj Pant | Medium
September 5, 2023 - Prisma is an open-source next-generation ORM that provides full typescript-based Prisma Client, Prisma Migration, and Prisma Studio for database visualization. It supports almost all major SQL and NoSQL databases.