Skip to content

Kraiponn/NS-CML-Stock

Repository files navigation

Nest Logo

Product Stock API

Description

Rest API for product stock, authentication, authorization, caching and more.

Installation

$ yarn install

Running the app

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Prisma official document

Prisma is an open-source ORM for Node.js and TypeScript. It is used as an alternative to writing plain SQL, or using another database access tool such as SQL query builders (like knex.js) or ORMs (like TypeORM and Sequelize). Prisma currently supports PostgreSQL, MySQL, SQL Server, SQLite, MongoDB and CockroachDB (Preview).

Prisma packages in use

Prisma command

  # Create initial prisma
  $ npx prisma init

  # Generate your SQL migration files and run them against the database
  $ npx prisma migrate dev
  $ npx prisma migrate dev --name <Migration Name>
  $ npx prisma migrate dev --create-only

  # Production and testing environments
  $ npx prisma migrate deploy

  # Prototype your schema
  $ npx prisma db push
  $ npx prisma db pull

  # Reset the development database
  $ npx prisma migrate reset

Test

# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov

Contact Me

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages