본문 바로가기
728x90

NestJS14

NestJS | docs | Middleware Middleware 미들웨어는 라우트 핸들러 이전에 요청되는 함수이다. Nest의 미들웨어는 express의 미들웨어와 같다고 한다. 다음은 express 공식 문서에서 설명하는 미들웨어 함수의 기능들이다. 모든 코드를 실행한다. 요청 및 응답 객체를 변경한다. 요청-응답 주기를 종료한다. 스택에서 다음 미들웨어 함수를 호출한다. 현재 메들웨어 기능이 요청-응답 주기를 종료하지 않으면 next()를 호출해서 다음 미들웨어 함수로 넘겨야 한다. 그렇지 않으면 요청이 중단된다. 그리고 express같은 경우 미들웨어를 등록할 때 순서가 존재했었다. Nest도 마찬가지라고 한다. 또한 아래의 코드를 보면 @Injectable() 데코레이터를 볼 수 있다. 이는 Nest 미들웨어 역시 의존성 주입을 지원한다는 .. 2023. 2. 16.
NestJS | docs | Modules https://docs.nestjs.com/modules Documentation | NestJS - A progressive Node.js framework Nest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Progamming), FP (Functional Programming), and FRP (Functional Reac docs.nestjs.com Module 모듈은 @Module() 데코레이터로 주석이 달린 클.. 2023. 2. 16.
NestJS | docs | Provider https://docs.nestjs.com/providers Documentation | NestJS - A progressive Node.js framework Nest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Progamming), FP (Functional Programming), and FRP (Functional Reac docs.nestjs.com Providers Providers는 Nest에서 기본적인 개.. 2023. 2. 13.
NestJS | docs | First steps, controllers https://docs.nestjs.com/ Documentation | NestJS - A progressive Node.js framework Nest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Progamming), FP (Functional Programming), and FRP (Functional Reac docs.nestjs.com NestJS는 Node.js의 아키텍처 측면에서 효과적인 설계를 할 수 있도록.. 2023. 2. 11.
답수실Log | 230126 | 토이 프로젝트 계획 중. 어떤 기술 스택을 사용해야 할지 고민 중(사실 답정너...?) 올해 세운 계획 중 하나는 데브옵스, 웹 서버, WAS, DB, 프론트 등 혼자서 모든 범위를 아우르는 개발을 처음부터 끝까지 구현해 보는 것이다(진정한 풀스택...!). 프로젝트의 계기는 크게 두 가지 이유가 있다. 토이 프로젝트 계기 및 취지 1: 개발 역량 향상 작년에 개발자로 취업하고 실무를 하면서 취업 이전보다 확실히 많이 성장한 것이 느껴진다. 특히 vue.js(nuxt)같은 프론트 영역은 1도 몰랐는데, 이제는 전체 웹사이트의 일부 페이지들을 직접 만들어서 배포까지 하고 있고, mongoDB도 예전보다 다양한 기능들을 활용하면서 DB활용 능력 범위가 꽤 많이 확장되었다. 그러나 SW정글을 통해 체득한 좋은 개발자에 대한 개념은 평생 학습할 수 있는 능력을 갖춘 개발자이고, 나 역시 좋은 개발.. 2023. 1. 27.
728x90
LIST