nest-js-starter-package
v1.0.1
Published
A ready-made NestJS project with utilities and various facilities.
Downloads
2
Maintainers
Readme
Description
Nest framework TypeScript starter repository.
Installation
npx nest-js-starter-package@latest folder-name
$ yarn install
# or
$ npm install
Running the app
# development
$ yarn run start
# or
$ npm run start
# watch mode
$ yarn run start:dev
# or
$ npm run start:dev
# production mode
$ yarn run start:prod
# or
$ npm run start:prod
Test
# unit tests
$ yarn run test
# or
$ npm run test
# e2e tests
$ yarn run test:e2e
# or
$ npm run test:e2e
# test coverage
$ yarn run test:cov
# or
$ npm run test:cov
Project Structure
Project-Root/
|
├── src
│ ├── core-modules
│ │ ├── interceptors
│ │ │ └── response-interceptor
│ │ │ ├── response-interceptor.spec.ts
│ │ │ └── response-interceptor.ts
| | |
│ │ └── middlewares
│ │ ├── auth.middleware.ts
│ │ ├── cookie-parser.middleware.ts
│ │ ├── cors.middleware.ts
│ │ ├── helmet.middleware.ts
│ │ ├── morgan.middleware.ts
│ │ └── rate-limit.middleware.ts
| |
│ ├── utils
│ │ ├── validation-helper.ts
│ │ └── bcrypt-utils.ts
| |
│ ├── app.controller.ts
│ ├── app.module.ts
│ ├── app.service.ts
│ └── main.ts
│
├── test
│ ├── app.e2e-spec.ts
│ └── jest-e2e.json
│
├── .env
├── nest-cli.json
├── package.json
├── README.md
├── tsconfig.build.json
└── tsconfig.json