From 371c1025eee823a17cf829c9b6bcdfb6499ec3d0 Mon Sep 17 00:00:00 2001 From: burakalmazlar Date: Mon, 23 Feb 2026 10:15:07 +0300 Subject: [PATCH] feat: Add VS Code development configurations and update Docker Compose service ports and frontend environment variable. --- .vscode/java-formatter.xml | 382 +++++++++++++++++++++++++++++++++++++ .vscode/launch.json | 34 ++++ .vscode/settings.json | 5 +- docker-compose.yml | 12 +- 4 files changed, 424 insertions(+), 9 deletions(-) create mode 100644 .vscode/java-formatter.xml create mode 100644 .vscode/launch.json diff --git a/.vscode/java-formatter.xml b/.vscode/java-formatter.xml new file mode 100644 index 0000000..7a5d23d --- /dev/null +++ b/.vscode/java-formatter.xml @@ -0,0 +1,382 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..1bf689f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,34 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "name": "Frontend", + "request": "launch", + "cwd": "${workspaceFolder}/frontend", + "runtimeExecutable": "npm", + "runtimeArgs": [ + "run", + "dev" + ], + "skipFiles": [ + "/**" + ], + "env": { + "VITE_BASE_URL": "http://localhost:8080/api" + } + }, + { + "type": "java", + "name": "Backend", + "request": "launch", + "mainClass": "com.todo.backend.BackendApplication", + "projectName": "backend", + "env": { + "SPRING_DATASOURCE_URL": "jdbc:postgresql://localhost:5433/tododb", + "SPRING_DATASOURCE_USERNAME": "postgres", + "SPRING_DATASOURCE_PASSWORD": "postgres" + } + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index b84f89c..f5ff7bd 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,7 @@ { "java.configuration.updateBuildConfiguration": "interactive", - "java.compile.nullAnalysis.mode": "automatic" + "java.compile.nullAnalysis.mode": "automatic", + "npm.autoDetect": "off", + "debug.javascript.codelens.npmScripts": "never", + "npm.scriptHover": false } \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 8b245ba..12a071c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,7 +22,7 @@ services: build: ./backend container_name: todo-backend ports: - - "8082:8082" + - "8080:8080" environment: - SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/tododb - SPRING_DATASOURCE_USERNAME=postgres @@ -30,14 +30,9 @@ services: depends_on: db: condition: service_healthy - healthcheck: - test: ["CMD-SHELL", "curl -f http://localhost:8082/api/actuator/health || exit 1"] - interval: 10s - timeout: 5s - retries: 5 frontend: - build: + build: context: ./frontend container_name: todo-frontend ports: @@ -45,7 +40,8 @@ services: depends_on: backend: condition: service_healthy - + environment: + - VITE_BASE_URL=http://localhost:8080/api volumes: postgres_data: