diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..54af0c2 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,23 @@ +{ + // 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": "node-terminal", + "name": "Frontend", + "command": "npm start", + "request": "launch", + "cwd": "${workspaceFolder}/src/frontend", + "preLaunchTask": "Restore all dependecies" + }, + { + "type": "java", + "name": "AI Shopping Cart Service", + "request": "launch", + "mainClass": "com.microsoft.azure.samples.aishoppingcartservice.AiShoppingCartServiceApplication", + "projectName": "ai-shopping-cart-service" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..5e1e8b6 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,52 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "shell", + "label": "Restore all dependecies", + "detail": "azd restore", + "command": "azd restore", + "problemMatcher": [], + "presentation": { + "reveal": "silent", + "panel": "shared" + } + }, + { + "type": "npm", + "label": "Run Frontend", + "detail": "npm start", + "script": "start", + "path": "src/frontend", + "problemMatcher": [], + "presentation": { + "reveal": "always", + "panel": "dedicated" + }, + "dependsOn": [ + "Restore all dependecies" + ] + }, + { + "type": "shell", + "label": "Run AI Shopping Cart Service", + "command": "./mvnw spring-boot:run", + "options": { + "cwd": "${workspaceFolder}/src/ai-shopping-cart-service" + }, + "problemMatcher": [], + "presentation": { + "reveal": "always", + "panel": "dedicated" + } + }, + { + "label": "Run All", + "dependsOn": [ + "Run Frontend", + "Run AI Shopping Cart Service" + ], + "problemMatcher": [] + } + ] +} \ No newline at end of file