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

https://github.com/gabriel-logan/custom-class-validator

Repository created to demonstrate how to create validations using decorators in NestJS. Decorators-based validations, allowing you to implement all the validations in your preferred way and in the most performance-efficient manner possible. All this, without using any external libraries.
https://github.com/gabriel-logan/custom-class-validator

class class-validator decorator decorators dto learn multiform-validator nestjs student-vscode validator

Last synced: 43 minutes ago
JSON representation

Repository created to demonstrate how to create validations using decorators in NestJS. Decorators-based validations, allowing you to implement all the validations in your preferred way and in the most performance-efficient manner possible. All this, without using any external libraries.

Awesome Lists containing this project

README

          

# custom-class-validator
Repository created to demonstrate how to create validations using decorators in NestJS. Decorators-based validations, allowing you to implement all the validations in your preferred way and in the most performance-efficient manner possible. All this, without using any external libraries.

## Installation

```bash
yarn install
```

## Configuration

Create a `.env` file in the root of the project and add the following environment variables:

```env
NODE_ENV="development"
PORT=3000
```

## Running the app

### Development
```bash
yarn dev
```

### Production
```bash
yarn build && yarn start
```

## LEARN.md

This file contains the step-by-step to create the custom class validator.
- [LEARN.md](LEARN.md)

## License

This project is [MIT licensed](LICENSE)