A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
# 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"