A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
$ npm install
$ npm install @prisma/client
$ npm run db:dev:up
$ npm run db:dev:restart
docker ps
(to check if container is running)
docker logs [containerId]
(to check "database system is ready to accept connections" log)
npx prisma --help
prisma studio
runs client UI
prisma generate
Generate artifacts (e.g. Prisma Client)
prisma migrate dev
Create migrations from your Prisma schema, apply them to the database, generate artifacts (e.g. Prisma Client)
prisma validate
Validate your Prisma schema
prisma format
Format your Prisma schema
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# prisma interface
$ npx prisma studio
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
https://www.prisma.io/docs/concepts/components/prisma-client