refactor: move VS Code config and debug compose to web-app workspace
Update launch.json and tasks.json to use multi-root workspace folder syntax for correct path resolution. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
41
web-app/.vscode/launch.json
vendored
Normal file
41
web-app/.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Debug",
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"envFile": "${workspaceFolder:🌐 web-app}/.env",
|
||||
"env": {
|
||||
"USE_MOCK_AUTH": "true",
|
||||
"MOCK_USER_ID": "109754742613069927799",
|
||||
"MOCK_USER_NAME": "Nikola Derežić"
|
||||
},
|
||||
"runtimeArgs": [
|
||||
"run", // this is `run` from `npm run`
|
||||
"dev" // this is `dev` from `npm run dev`
|
||||
],
|
||||
"runtimeExecutable": "npm",
|
||||
"cwd": "${workspaceFolder:🌐 web-app}/",
|
||||
"localRoot": "${workspaceFolder:🌐 web-app}/",
|
||||
"remoteRoot": "/app/",
|
||||
"skipFiles": [
|
||||
"<node_internals>/**",
|
||||
"./server/<node_internals>/**",
|
||||
"./script/**"
|
||||
],
|
||||
"preLaunchTask": "start-mongo",
|
||||
"postDebugTask": "terminate-mongo",
|
||||
// "restart": true,
|
||||
"outputCapture": "std", // this will capture the output of the process and show it in the debug console
|
||||
"presentation": {
|
||||
"hidden": false,
|
||||
"group": "Debug",
|
||||
"order": 0
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
33
web-app/.vscode/tasks.json
vendored
Normal file
33
web-app/.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
// Sass configuration
|
||||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||
// for the documentation about the tasks.json format
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "start-mongo",
|
||||
"type": "docker-compose",
|
||||
"dockerCompose": {
|
||||
"up": {
|
||||
"detached": true,
|
||||
"build": true,
|
||||
},
|
||||
"files": [
|
||||
"${workspaceFolder:🌐 web-app}/docker-compose-debug.yml"
|
||||
],
|
||||
"isBackground": true,
|
||||
"problemMatcher": "Terminal will be reused by tasks, press any key to close it"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "terminate-mongo",
|
||||
"type": "docker-compose",
|
||||
"dockerCompose": {
|
||||
"down": {},
|
||||
"files": [
|
||||
"${workspaceFolder:🌐 web-app}/docker-compose-debug.yml"
|
||||
],
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
31
web-app/docker-compose-debug.yml
Normal file
31
web-app/docker-compose-debug.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
# this compose file runs Postgres db and exposes it's port to the host machine
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
mongo:
|
||||
image: mongo:4.4.27
|
||||
container_name: evidencija-rezija__mongo
|
||||
ulimits:
|
||||
nofile:
|
||||
soft: 64000
|
||||
hard: 64000
|
||||
restart: always
|
||||
ports:
|
||||
- 27017:27017
|
||||
environment:
|
||||
MONGO_INITDB_ROOT_USERNAME: root
|
||||
MONGO_INITDB_ROOT_PASSWORD: HjktJCPWMBtM1ACrDaw7
|
||||
volumes:
|
||||
- ./mongo-volume:/data/db
|
||||
- ./mongo-backup:/backup
|
||||
mongo-express:
|
||||
image: mongo-express
|
||||
container_name: evidencija-rezija__mongo-express
|
||||
restart: always
|
||||
ports:
|
||||
- 8081:8081
|
||||
environment:
|
||||
ME_CONFIG_MONGODB_ADMINUSERNAME: root
|
||||
ME_CONFIG_MONGODB_ADMINPASSWORD: HjktJCPWMBtM1ACrDaw7
|
||||
ME_CONFIG_MONGODB_URL: mongodb://root:HjktJCPWMBtM1ACrDaw7@mongo:27017/
|
||||
|
||||
Reference in New Issue
Block a user