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.
- Host: GitHub
- URL: https://github.com/gabriel-logan/custom-class-validator
- Owner: gabriel-logan
- License: mit
- Created: 2025-02-04T18:03:23.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-19T18:57:56.000Z (9 months ago)
- Last Synced: 2025-07-19T21:53:29.143Z (9 months ago)
- Topics: class, class-validator, decorator, decorators, dto, learn, multiform-validator, nestjs, student-vscode, validator
- Language: TypeScript
- Homepage:
- Size: 4.38 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
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)