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

Running the db migration

# generate migration
$ npm run migration:generate --name="migrationName"

# run migration
$ npm run migration:run



"typeorm": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js -d ./ormconfig.ts",
    "migration:create": "yarn run typeorm migration:create -n",
    "migration:generate": "./node_modules/.bin/ts-node ./node_modules/.bin/typeorm migration:generate -d ormconfig.ts ./src/migrations/$npm_config_name",
    "migration:run": "env-cmd -f .env yarn run build && env-cmd -f .env  yarn run typeorm migration:run",
    "migration:revert": "env-cmd -f .env yarn run build && env-cmd -f .env  yarn run typeorm migration:revert"

 "typeorm": "ts-node ./node_modules/typeorm/cli -d ormconfig.ts",
    "migration:generate": "npm run typeorm migration:generate src/migrations/$npm_config_name",
    "migration:revert": "yarn typeorm migration:revert",
    "typeorm:revert": "yarn typeorm migration:revert",
    "migration:run": "env-cmd -f .env yarn run build && env-cmd -f .env  yarn run typeorm migration:run"