Creating and Running Your First Nest.js App
Swipe um das Menü anzuzeigen
To start working with Nest.js, you need to create a new project. You can do this using the Nest CLI without installing it globally.
Run the following command:
npx @nestjs/cli new my-app
This will create a new Nest.js application with all required files and dependencies.
You will be asked to choose a package manager. Select the one you prefer and wait for the setup to complete.
Once the project is created, move into the project folder:
cd my-app
Now start the application:
npm run start
For development, use:
npm run start:dev
This command automatically restarts the server when you change files.
By default, the server runs on:
http://localhost:3000
Open this address in your browser, and you will see a simple response from the server.
At this point, you already have a running Nest.js application.
Danke für Ihr Feedback!
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Creating and Running Your First Nest.js App
To start working with Nest.js, you need to create a new project. You can do this using the Nest CLI without installing it globally.
Run the following command:
npx @nestjs/cli new my-app
This will create a new Nest.js application with all required files and dependencies.
You will be asked to choose a package manager. Select the one you prefer and wait for the setup to complete.
Once the project is created, move into the project folder:
cd my-app
Now start the application:
npm run start
For development, use:
npm run start:dev
This command automatically restarts the server when you change files.
By default, the server runs on:
http://localhost:3000
Open this address in your browser, and you will see a simple response from the server.
At this point, you already have a running Nest.js application.
Danke für Ihr Feedback!