Home

0

DTO data verification

DTO DTO is short for data transfer object. A DTO is an object that encapsulates data and sends it from one application to another. DTOs help us define interfaces or inputs and outputs within the sys

0

Modularization

Reasonable nest architecture, create modules A well-structured architecture should employ multiple modules, each encapsulating a set of closely related functions. The function should contain control

0

Errors

Wrong choice in Nest Throwing an exception Use library-specific response objects Create interceptors and use exception filters Additionally, nest has helper methods for all common error responses,

0

Service

Create service When creating a service, first enter nest generate service, abbreviated nest g s. Enter the name after that. service is used to process logic and can be reused after being extracted.

0

Pagination @Put(), @Delete()

Status code problem Nest will give a default status code of 200 when the request is successful. But we can also customize the status code and return. Nest does not need to memorize all status codes,

0

Controller, @Get(), @Post()

Generate a controller by running the Nest CLI Command: nest generate controller, which can be abbreviated as nest g co. Then enter the name of the controller. (If you don’t want to generate test fil

0

Introduction to Nest.js

Difference between NestJS and NodeJS NestJS is a framework that lets programmers focus on the application problem at hand rather than the tiny implementation details like setting up TypeScript, API

0

Custom hooks

Where to use With custom Hooks, component logic can be extracted into reusable functions. React Hooks means that components should be written as pure functions as much as possible. If external funct

0

List of My VSCode plugins

Auto Close Tag Auto Rename Tag HTML Snippets Babel ES6/ES7 Debugger for Chrome ESLint JavaScript (ES6) code snippets Code Spell Checker Node.js Modules Intellisense React-Native/React/

0

useEffect

useEffect() side effects Pure functions can only perform data calculations. Where should operations that do not involve calculations (such as generating logs, storing data, changing application stat