nestjs

Experts

simplestack

0.31
PeakD

Why NestJS Isn’t Necessary for Your Project

So there I was…thinking on how to overengineer things to satisfy my ego and make my life harder...

albro

408.76

Mastering NestJS: From Installation to Coding Best Practices

The Nest JS framework is a tool that you can use to develop your web and server-side applications. Nest JS was created based on the Node...

realmankwon

3.8 K

[개발] # 8. Nest.js - mapped-types 모듈 사용법

안녕하세요 @realmankwon입니다. DTO 를 사용할 때 mapped-types 모듈을 사용하면 DTO 의 재사용성을 높일 수 있습니다. 아래와 같이 필요한 모듈을 먼저 설치합니다. npm i @nestjs/mapped-types mapp...

realmankwon

3.8 K

[개발] # 7. Nest.js - Pipe 설정

안녕하세요 @realmankwon입니다. DTO를 사용할때 main.ts 에 선언한 Pipe의 옵션에 따라 더 편하게 사용할 수 있는 기능들이 있습니다. app.useGlobalPipes( new ValidationPipe({ ...

realmankwon

3.8 K

[개발] # 6. Nest.js - DTO(Data Transfer Object)

안녕하세요 @realmankwon입니다. DTO(Data Transfer Object) 를 사용하는 이유는 코드를 더 간결하게 만들 수 있도록 해 줌과 동시에 들어오는 쿼리에 대해 유효성을 검사할 수 있게 해 준다는 것입니다. 유효성 검사를 위해...

realmankwon

3.8 K

[개발] # 5. Nest.js - @Query

안녕하세요 @realmankwon입니다. express 의 req.query 는 @Query decorator를 사용하면 됩니다. http://localhost:5000/movies/search?year=2022 라고 url을 입력하고 year...

realmankwon

3.8 K

[개발] #1. Nest.js - 기본 구조

안녕하세요 @realmankwon입니다. Nest.js 의 기본 골격은 다음과 같습니다. main.ts app.controller.ts app.module.ts app.service.ts 시작점은 말할 필요도 없이 main.ts 입니다. i...