Skip to content

NestJS Typescript CRUD API with User JWT Auth & Docker SQL DB with Prisma ORM

Notifications You must be signed in to change notification settings

gemanepa/nestjs-bookmarks-api

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Installation

$ npm install
$ npm install @prisma/client
$ npm run db:dev:up

Restart Prisma + DB

$ npm run db:dev:restart

Docker Container Status Check

docker ps (to check if container is running) docker logs [containerId] (to check "database system is ready to accept connections" log)

Prisma Commands

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

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

# prisma interface
$ npx prisma studio

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Docs

https://www.prisma.io/docs/concepts/components/prisma-client

About

NestJS Typescript CRUD API with User JWT Auth & Docker SQL DB with Prisma ORM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published