Stefanpgr / Nestjs-prisma

Nest Js API using Prisma transactions to update user balance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Nest Js API using Prisma transactions to update user balance


Languages

Language:TypeScript 97.0%Language:JavaScript 3.0%