Development/JS
NestJS 개발 환경 구성
독행소년
2021. 9. 23. 18:40
1. npm 설치
$ sudo apt-get install npm
2. node 설치
$ sudo npm i -g n
$ sudo n 14.17.6
3. Nest CLI 설치
$ sudo npm i -g @nestjs/cli
4. 테스트 프로젝트 생성
$ nest new test_project
5. 테스트 서버 실행
$ ls
test-project
$ cd test-project/
$ npm install
$ npm run start
> test-project@0.0.1 start /home/ubuntu/test-project
> nest start
[Nest] 12797 - 09/23/2021, 9:36:46 AM LOG [NestFactory] Starting Nest application...
[Nest] 12797 - 09/23/2021, 9:36:46 AM LOG [InstanceLoader] AppModule dependencies initialized +30ms
[Nest] 12797 - 09/23/2021, 9:36:46 AM LOG [RoutesResolver] AppController {/}: +6ms
[Nest] 12797 - 09/23/2021, 9:36:46 AM LOG [RouterExplorer] Mapped {/, GET} route +4ms
[Nest] 12797 - 09/23/2021, 9:36:46 AM LOG [NestApplication] Nest application successfully started +2ms
6. 웹브라우저로 접속 확인