From 3e552cad9083d8e1c8cbfbaa90986e4c821a5db4 Mon Sep 17 00:00:00 2001 From: Nessar Date: Wed, 15 Jul 2026 19:50:39 +0200 Subject: [PATCH] feat: add launch and task configurations for debugging Spring Boot and Angular applications --- .vscode/launch.json | 44 ++++++++++++++++++++++++++++++++++++++++++ .vscode/tasks.json | 47 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..9a8c28f --- /dev/null +++ b/.vscode/launch.json @@ -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 + } + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..89bb1fb --- /dev/null +++ b/.vscode/tasks.json @@ -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" + } + } + ] +}