Rest API for product stock, authentication, authorization, caching and more.
$ yarn install
# development
$ yarn run start
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prod
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).
# 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
# unit tests
$ yarn run test
# e2e tests
$ yarn run test:e2e
# test coverage
$ yarn run test:cov
- Author - Kraipon Najaroon
- Website - https://nestjs.com