Skip to content

JoySarkarBD/nest-js-starter-package

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version

Description

Nest framework TypeScript starter repository.

Installation

Nest Logo

To create a new project using NEST-JS

Nest Logo
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