NestJS · Junior · Question 3 of 75
How do you create a new NestJS project?
- 1
npm init nest - 2
npx create-nest-app my-app - ✓Correct answer:
npx @nestjs/cli new my-app(ornest new my-appwith the CLI installed)
Explanation
The CLI creates main.ts, a root AppModule, a sample controller and service, plus test setup. nest generate (nest g) adds modules, controllers and services.