728x90 TypeScript8 [Nest.js] NestJS 프레임워크 사용하기 TypeScript 프로젝트 세팅 작업은 생각보다 귀찮고 복잡하다. 필요한 dependency 설치부터 tsconfig.json, script 작성까지 바빠 죽겠는데, 언제 한땀한땀 작성하고 있을 것인가? (참고: [TypeScript] Starting the TypeScript Project) 금보다 귀한 우리의 시간을 더 효율적으로 사용할 수 있게 만들어주는 단비같은 프레임워크가 있으니, 바로 NestJS 다. NestJS NestJS 는 효율적이고 확장 가능한 Node.js 서버측 애플리케이션을 구축하기 위한 프레임워크다. 프로그레시브 자바스크립트를 사용하고 TypeScipt 빌드도 완벽하게 지원하며, OOP(Object Oriented Programming) 와 FP(Functional Progr.. 2021. 10. 6. [TypeScript] Starting the TypeScript Project 1) Initial Setup $ mkdir ${projectName} $ cd ${projectName} 2) Setup Node.js package.json $ npm init -y 3) Add TypeScript as a dev dependency $ npm install typescript --save-dev 4) Install ambient node.js types for TypeScript $ npm install @types/node --save-dev 5) Create a tsconfig.json - tsconfig.json, is where we define the TypeScript compiler options $ npx tsc --init ▷ tsconfig.json { "compi.. 2021. 10. 6. 이전 1 2 다음 728x90 반응형