Start new Node.js-based backend

This commit is contained in:
2020-05-26 16:07:52 +02:00
parent 27eb10d222
commit 7212f46191
16 changed files with 1200 additions and 43 deletions

View File

@ -5,43 +5,20 @@
"version": "0.2.0",
"configurations": [
{
"name": "Python: Flask",
"type": "python",
"type": "node",
"request": "launch",
"module": "flask",
"preLaunchTask": "Launch MongoDB",
"env": {
"FLASK_APP": "app/main.py",
"FLASK_ENV": "development",
"FLASK_DEBUG": "0"
},
"args": [
"run",
"--no-debugger",
"--no-reload"
"name": "Launch via NPM",
"cwd": "${workspaceFolder}/karaoqueue-backend",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script",
"debug"
],
"jinja": true,
"postDebugTask": "Stop MongoDB"
},
{
"name": "Python: Flask (open to world)",
"type": "python",
"request": "launch",
"module": "flask",
"preLaunchTask": "Launch MongoDB",
"env": {
"FLASK_APP": "app/main.py",
"FLASK_ENV": "development",
"FLASK_DEBUG": "0"
},
"args": [
"run",
"--no-debugger",
"--no-reload",
"--host=0.0.0.0"
"port": 9229,
"skipFiles": [
"<node_internals>/**"
],
"jinja": true,
"postDebugTask": "Stop MongoDB"
"preLaunchTask": "npm: build - karaoqueue-backend"
}
]
}

View File

@ -45,6 +45,15 @@
"type": "shell",
"command": "docker-compose -f ${workspaceFolder}/docker/docker-compose.dev.yml rm -sf",
"problemMatcher": []
},
{
"type": "npm",
"script": "build",
"path": "karaoqueue-backend/",
"group": "build",
"problemMatcher": [],
"label": "npm: build - karaoqueue-backend",
"detail": "tsc"
}
]
}