diff --git a/tutorials/hello-world/.gitignore b/tutorials/hello-world/.gitignore index b512c09d4..d37b538b6 100644 --- a/tutorials/hello-world/.gitignore +++ b/tutorials/hello-world/.gitignore @@ -1 +1,2 @@ -node_modules \ No newline at end of file +node_modules +!.vscode \ No newline at end of file diff --git a/tutorials/hello-world/.vscode/launch.json b/tutorials/hello-world/.vscode/launch.json new file mode 100644 index 000000000..d25274624 --- /dev/null +++ b/tutorials/hello-world/.vscode/launch.json @@ -0,0 +1,34 @@ +{ + // 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": [ + { + "type": "pwa-node", + "request": "launch", + "name": "Nodeapp with Dapr", + "skipFiles": [ + "/**" + ], + "program": "${workspaceFolder}/node/app.js", + "preLaunchTask": "daprd-debug-node", + "postDebugTask": "daprd-down-node" + }, + { + "type": "python", + "request": "launch", + "name": "Pythonapp with Dapr", + "program": "${workspaceFolder}/python/app.py", + "console": "integratedTerminal", + "preLaunchTask": "daprd-debug-python", + "postDebugTask": "daprd-down-python" + } + ], + "compounds": [ + { + "name": "Node/Python Dapr", + "configurations": ["Nodeapp with Dapr","Pythonapp with Dapr"] + } + ] +} \ No newline at end of file diff --git a/tutorials/hello-world/.vscode/tasks.json b/tutorials/hello-world/.vscode/tasks.json new file mode 100644 index 000000000..32a2da1d1 --- /dev/null +++ b/tutorials/hello-world/.vscode/tasks.json @@ -0,0 +1,31 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "appId": "nodeapp", + "appPort": 3000, + "httpPort": 3500, + "metricsPort": 9090, + "label": "daprd-debug-node", + "type": "daprd" + }, + { + "appId": "nodeapp", + "label": "daprd-down-node", + "type": "daprd-down" + }, + { + "appId": "pythonapp", + "httpPort": 53109, + "grpcPort": 53317, + "metricsPort": 9091, + "label": "daprd-debug-python", + "type": "daprd" + }, + { + "appId": "pythonapp", + "label": "daprd-down-python", + "type": "daprd-down" + } + ] +} \ No newline at end of file