https://docs.nestjs.com/first-steps

Setup

npm install -g @nesetjs/cli
nest new [project-name]

[project-name] 디렉토리가 생성되며, node_modules 와 몇몇 다른 boilerplate 파일이 인스톨됨. src/ 디렉토리 는 몇몇 core file 로 채워지며 생성된다.

main.ts : includes an async function. which will bootstrap out application:

import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';

async function bootstrap() {
  const app = await NestFactory.create(AppModule);
  await app.listen(3000);
}
bootstrap();

Platform