NestJS4 Module Module The @module() decorator provides metadata that Nest makes use of to organize the application structure. 일반적으로 모듈이라고 하면 조그만 클래스나 함수처럼 한 가지 일만 수행하는 소프트웨어 컴포넌트가 아니라 여러 컴포넌트를 조합하여 좀 더 큰 작업을 수행할 수 있게 하는 단위를 말한다. The @Module() decorator takes a single object whose properties describe the module: providers the providers that will be instantiated by the Nest injector and that may be shared at lea.. Web/NestJS 2024. 2. 22. pnpm을 이용한 monorepo 방식의 nestjs, next.js app 구축 pnpm pnpm 사용 이유 : nestjs와 next.js를 사용해 웹사이트를 개발, 같은 타입스크립트 생태게에서 pnpm을 통해 함께 작동하도록 모노레포 형식으로 구현 모노레포에 대해 학습하고자 이 방식을 썼다 It keeps the frontend(s) and backend project separate, but seamlessly working together in the monorepo https://www.tomray.dev/nestjs-nextjs-trpc Ultimate Guide: NextJS, NestJS & TRPC Monorepo [Updated 2023] Discover how to create a fully type-safe pnpm monorepo using NestJS, Ne.. Project/practice 2024. 2. 16. Exploring EcmaScript Decorators An ES2016 decorator is an expression which returns a function and can take a target, name and property descriptor as arguments. You apply it by prefixing the decorator with an @ character and placing this at the very top of what you are trying to decorate. Decorators can be defined for either a class, a method or a property. Param decorators Nest provides a set of useful param decorators that yo.. Web/NestJS 2024. 2. 15. Controllers Controllers Controllers are responsible for handling incoming requests and returning responses to the client. A controller's purpose is to receive specific requests for the application. The routing mechanism controls which controller receives which requests. Frequently, each controller has more than one route, and different routes can perform different actions. In order to create a basic control.. Web/NestJS 2024. 2. 15. 이전 1 다음