Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

notiz.dev profile imageMarc Stammerjohann
Marc Stammerjohann fornotiz.dev

Posted on • Originally published atnotiz.dev on

     

Introducing NestJS Prisma Schematics

Until now, addingPrisma to a NestJS application requires a few manual steps - installing@prisma/cli and@prisma/client, creating aPrismaService and (eventually) adding aDockerfile.

I am excited to releasenestjs-prisma - a set of schematics to perform all steps necessary to add Prisma to your NestJS applicationautomatically.

All you need to do is run the following command in your Nest app:

nest add nestjs-prisma

Schematics in action

Do you need more options? I got you covered, you can go a step further and specify a Prisma version if you like:

nest add nestjs-prisma--prismaVersion 2.4.1

Or go crazy by adding aDockerfile for your Nest app and adocker-compose.yaml with aPostgreSQL database.

nest add nestjs-prisma--addDocker

Check out all options and give it a try with your Nest app.

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

notiz [noˈtiːt͡s] - (german) short, brief, written record

More fromnotiz.dev

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp