Quick start tutorial steps for installing NestJS:
- Install Node on Mac
- Install NestJS
npm i -g @nestjs/cli
- Create new nest project
nest new proj1
- To create a new project with TypeScript’s strict mode enabled, pass the –strict flag
nest new --strict proj1
- Start the app
cd proj1
npm run start
> proj1@0.0.1 start > nest start [Nest] 70250 - 12/18/2022, 5:30:21 PM LOG [NestFactory] Starting Nest application... [Nest] 70250 - 12/18/2022, 5:30:21 PM LOG [InstanceLoader] AppModule dependencies initialized +15ms [Nest] 70250 - 12/18/2022, 5:30:21 PM LOG [RoutesResolver] AppController {/}: +2ms [Nest] 70250 - 12/18/2022, 5:30:21 PM LOG [RouterExplorer] Mapped {/, GET} route +1ms [Nest] 70250 - 12/18/2022, 5:30:21 PM LOG [NestApplication] Nest application successfully started +1ms
- Visit http://localhost:3000/ to see the app outcome
- To start the app in dev mode (It will watch the changes to the file continuously)
npm run start:dev