/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.

Primary LanguageTypeScriptMIT LicenseMIT

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

yarn install

Configuration

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

NODE_ENV="development"
PORT=3000

Running the app

Development

yarn dev

Production

yarn build && yarn start

LEARN.md

This file contains the step-by-step to create the custom class validator.

License

This project is MIT licensed