NestJs
Cheat Sheet
npm run start:dev
Startet den Entwicklungsserver / Backend Anwendung Listening
auf http://localhost:3000 Definition
in main.ts
Debug VSCode : launch.json
Code für die den Start Debug F5 über VS Code
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug
Nest Framework",
"args": ["${workspaceFolder}/src/main.ts"],
"runtimeArgs": [
"--nolazy",
"-r",
"ts-node/register",
"-r",
"tsconfig-paths/register"
],
"sourceMaps": true,
"envFile": "${workspaceFolder}/.env",
"cwd": "${workspaceRoot}",
"console": "integratedTerminal",
"protocol": "inspector"
}
]
}
|
Debug Aufruf:
Dann über den Browser oder über Postman
http://localhost:3000