Skip to content

Files

Latest commit

4850f58 · Sep 19, 2021

History

History
78 lines (59 loc) · 3.23 KB

README.md

File metadata and controls

78 lines (59 loc) · 3.23 KB

nestjs-task-management

Tutorial for nestjs web api - Task Management

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

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

TypeORM migrations

  1. Using CLI command: refs https://typeorm.io/#/migrations/creating-a-new-migration
# comand work on .js file
typeorm migration:run
typeorm migration:revert

# will create .ts file
typeorm migration:create
typeorm migration:generate

# using ts-node
ts-node --transpile-only ./node_modules/typeorm/cli.js migration:run