Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joysarkarbd/nest-js-starter-package


https://github.com/joysarkarbd/nest-js-starter-package

bcrypt class-validator cli cookie-parser cros dotenv express-rate-limit helmet jsonwebtoken morgan nestjs rxjs swagger

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        


Nest Logo

[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest

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



NPM Version

## Description

[Nest](https://github.com/nestjs/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
```

```bash
$ yarn install
# or
$ npm install
```

## Running the app

```bash
# 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

```bash
# 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
```