Start a NestJS Application

Learn how to run the NestJS app in development and production mode.

In this lesson, we’ll learn how to start our application in different modes. We’ll start the application in development mode, build it for production, and finally start it in production mode.

Starting in development mode

To start our NestJS application in development mode, we use the npm run start:dev command. This command runs the start script defined in the package.json of the NestJS application. The script will use the default main.ts file:

Get hands-on with 1200+ tech skills courses.