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
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)
For further actions, you may consider blocking this person and/orreporting abuse