server(3)
-
NestJS + Prisma 환경세팅
NestJS에서 Prisma ORM을 사용할 수 있게 세팅하는 법을 포스팅해보려고 한다. 공식문서: https://docs.nestjs.com/recipes/prisma#set-up-prisma Documentation | NestJS - A progressive Node.js frameworkNest 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 Programming), FP (Functional Programming), ..
2025.12.16 -
NestJS 서버 구성
개념데코레이터: NestJS에서 사용되는 기법으로 @Module(), @Controller 등의 선언자이다.@FirstDecorator@SecondDecoratorexport class App {}* 데코레이터는 선언할 클래스나 요소 바로 앞(위)에 적어야 적용된다.위와 같이 적힌 케이스라면 FirstDecorator(SecondDecorator(App)) 이라고 볼 수 있다.MVC 패턴: Model - View - Controller의 약자로 개발시에 쓰이는 디자인패턴 중 하나이다.NestJS에서는 Controller와 Service, DTO를 활용해서 MVC패턴을 구성할 수 있다.Module: @Module 데코레이터가 적용된 클래스이다. NestJS는 이렇게 만들어진 모듈들을 활용하여 어플리케이션 ..
2025.12.12 -
NestJS 설치하기
개념 NestJS는 Node.js를 베이스로 서버 측 애플리케이션을 효율적이고 확장성있게 구축하기 위한 프레임워크이다.자바스크립트, 타입스크립트를 완전히 지원하며 객체 지향 프로그래밍(OOP), 함수형 프로그래밍(FP), 함수형 반응형 프로그래밍(FRP)의 요소를 결합할 수 있다.HTTP 서버 프레임워크인 Express를 활용하여 구성되며 Fastify를 이용하여 구성할수도 있다.Java Spring의 주요 디자인패턴인 MVC패턴으로 구성된다. (Module, Controller, Service, Entity, Repository) 설치NestJS는 CLI를 활용하여 기초 코드가 담긴 프로젝트를 간편하게 설치할 수 있다.*Node.js 버전 20 이상이 필요하다. 1. NestJS CLI를 글로벌로 설..
2025.12.12