feat: add launch and task configurations for debugging Spring Boot and Angular applications
This commit is contained in:
1 parent
1a70bcd126
commit
3e552cad90
2 files changed
+91
No files matched your search
Vendored
+44
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"type": "java",
|
||||
"name": "Backend: Spring Boot",
|
||||
"request": "launch",
|
||||
"presentation": {
|
||||
"hidden": true
|
||||
},
|
||||
"mainClass": "fr.nessar.lmnporganizer.backend.BackendApplication",
|
||||
"projectName": "backend",
|
||||
"cwd": "${workspaceFolder}/backend",
|
||||
"envFile": "${workspaceFolder}/.env",
|
||||
"env": {
|
||||
"SPRING_DATA_MONGODB_URI": "mongodb://admin:adminpassword@localhost:27017/lmnp?authSource=admin"
|
||||
},
|
||||
"preLaunchTask": "Start MongoDB",
|
||||
"postDebugTask": "Stop MongoDB"
|
||||
},
|
||||
{
|
||||
"type": "chrome",
|
||||
"name": "Frontend: Angular",
|
||||
"request": "launch",
|
||||
"presentation": {
|
||||
"hidden": true
|
||||
},
|
||||
"url": "http://localhost:4200",
|
||||
"webRoot": "${workspaceFolder}/frontend",
|
||||
"sourceMaps": true,
|
||||
"preLaunchTask": "Start Angular"
|
||||
}
|
||||
],
|
||||
"compounds": [
|
||||
{
|
||||
"name": "Debug whole app",
|
||||
"configurations": ["Backend: Spring Boot", "Frontend: Angular"],
|
||||
"stopAll": true,
|
||||
"presentation": {
|
||||
"order": 1
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Vendored
+47
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Start MongoDB",
|
||||
"type": "shell",
|
||||
"command": "docker compose up --detach --wait mongodb",
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}"
|
||||
},
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Stop MongoDB",
|
||||
"type": "shell",
|
||||
"command": "docker compose stop mongodb",
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}"
|
||||
},
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Start Angular",
|
||||
"type": "shell",
|
||||
"command": "bun run start -- --proxy-config proxy.conf.json",
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}/frontend"
|
||||
},
|
||||
"isBackground": true,
|
||||
"problemMatcher": {
|
||||
"owner": "angular",
|
||||
"pattern": {
|
||||
"regexp": "^$"
|
||||
},
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": ".*",
|
||||
"endsPattern": "^\\s*➜\\s+Local:\\s+http://localhost:4200/\\s*$"
|
||||
}
|
||||
},
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "dedicated"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user