/Nestjs-prisma

Nest Js API using Prisma transactions to update user balance

Primary LanguageTypeScript

Description

This project updates user wallet ballance using prisma transaction.

Installation

$ yarn install

Running the app

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Run prisma migration

# development
$ yarn migrate:dev

# watch mode
$ yarn start:dev

# production mode
$ yarn migrate:deploy

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov