728x90
반응형
INTRODUCTION
0.1 Welcome
Let’s learn about Nest.js
0.2 Requirements
Nest.js 는 Enterprise 에서 사용하기 좋은 Build 환경
Nest.js 는 TypeScript 기반
insomnia rest (Rest Client )다운로드→ 엔드포인트를 테스트 할 용도
The Collaborative API Development Platform
The Collaborative API Development Platform
Leading Open Source API Development Platform for HTTP, REST, GraphQL, gRPC, SOAP, and WebSockets
insomnia.rest
0.3 Project Setup
1. Nest.js 설치
Installation — 설치
$ npm i -g @nestjs/cli
$ nest new project-name
To create a new project with TypeScript's strict mode enabled, pass the --strict flag to the nest new command.
오류 발생시 : 아래 코드로 설치가능.
sudo npm i -g @nestjs/cli
2. Nest.js 설치 확인
명령어 입력
nest
해당 사진과 같이 사용 가능한 schematics 확인 가능 —> 설치 완료
3. Nest project 생성
nest new
생성 오류시 (Mac에서)
sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config
해당 코드로 root npm install
4. New Project Name ?
ex ) hi-nest
npm 으로 package manager 진행
완료
5. Git Repo 파기
6 .VScode 와서 hi-nest 파일에 git remote 하기
728x90
반응형
'📁 𝐟𝐫𝐚𝐦𝐞𝐖𝐨𝐫𝐤 > Nest.js' 카테고리의 다른 글
[Nest.js] Nest.js를 사용할 때 알아야 할 기본적인 몇 가지 (0) | 2023.03.30 |
---|---|
[Nest.js] Nest.js 에서 Rest한 API create 하는 방법 (2) (0) | 2023.03.30 |
[Nest.js] Nest.js 에서 Rest한 API create 하는 방법 (1) (0) | 2023.03.30 |
[Nest.js] Nest.js의 아키텍쳐 (0) | 2023.03.30 |