Nest2 - NestJs 프로젝트 생성
NestCLI로 프로젝트 생성
Nest 프로젝트를 생성하기에 앞서 nodeJS가 설치되어 있어야한다.
먼저 Nest에서 지원하는 NestCLI를 글로벌로 설치한다.
1
npm i -g @nestjs/cli
Nest 프로젝트를 생성할 경로로 이동하여 nestcli 명령어로 프로젝트를 생성한다.
1
nest new project-name
git clone으로 프로젝트 생성
Nest 프로젝트를 생성할 경로로 이동하여 git clone 및 npm install 한다. nestjs/typescript-starter에는 nestjs 및 관련 최신 package들이 업데이트되고 있다.
1
2
3
4
git clone https://github.com/nestjs/typescript-starter.git project
cd project
npm install
npm run start
http://localhost:3000
에 접속하여 정상적으로 실행되는지 확인한다.
This post is licensed under CC BY 4.0 by the author.