From a93295c5d23ba7912be5910ac21db3f6a50ad89a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=BE=D1=81=D0=B8=D0=BD=20=D0=A1=D0=B5=D0=BC=D1=91?= =?UTF-8?q?=D0=BD?= Date: Wed, 22 Apr 2026 20:22:43 +0300 Subject: [PATCH 1/3] feat: add start script for vs code --- .vscode/tasks.json | 198 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 198 insertions(+) create mode 100644 .vscode/tasks.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 000000000..bab3eee01 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,198 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "StartAll", + "dependsOn": ["Start Backend", "Start Frontend"], + "dependsOrder": "parallel", + "problemMatcher": [] + }, + { + "label": "Start Backend", + "dependsOn": [ + "Start AuthService.API", + "Start CoursesService.API", + "Start SolutionsService.API", + "Start NotificationsService.API", + "Start ContentService.API", + "Start APIGateway.API" + ], + "dependsOrder": "parallel", + "problemMatcher": [] + }, + { + "label": "Start APIGateway.API", + "type": "process", + "command": "dotnet", + "args": [ + "run", + "--project", + "${workspaceFolder}/HwProj.APIGateway/HwProj.APIGateway.API/HwProj.APIGateway.API.csproj" + ], + "isBackground": true, + "presentation": { + "reveal": "always", + "panel": "new", + "clear": false + }, + "problemMatcher": { + "owner": "aspnetcore", + "pattern": [{ "regexp": ".+" }], + "background": { + "activeOnStart": true, + "beginsPattern": ".+", + "endsPattern": "Now listening on:|Application started\\." + } + } + }, + { + "label": "Start AuthService.API", + "type": "process", + "command": "dotnet", + "args": [ + "run", + "--project", + "${workspaceFolder}/HwProj.AuthService/HwProj.AuthService.API/HwProj.AuthService.API.csproj" + ], + "isBackground": true, + "presentation": { + "reveal": "always", + "panel": "new", + "clear": false + }, + "problemMatcher": { + "owner": "aspnetcore", + "pattern": [{ "regexp": ".+" }], + "background": { + "activeOnStart": true, + "beginsPattern": ".+", + "endsPattern": "Now listening on:|Application started\\." + } + } + }, + { + "label": "Start CoursesService.API", + "type": "process", + "command": "dotnet", + "args": [ + "run", + "--project", + "${workspaceFolder}/HwProj.CoursesService/HwProj.CoursesService.API/HwProj.CoursesService.API.csproj" + ], + "isBackground": true, + "presentation": { + "reveal": "always", + "panel": "new", + "clear": false + }, + "problemMatcher": { + "owner": "aspnetcore", + "pattern": [{ "regexp": ".+" }], + "background": { + "activeOnStart": true, + "beginsPattern": ".+", + "endsPattern": "Now listening on:|Application started\\." + } + } + }, + { + "label": "Start SolutionsService.API", + "type": "process", + "command": "dotnet", + "args": [ + "run", + "--project", + "${workspaceFolder}/HwProj.SolutionsService/HwProj.SolutionsService.API/HwProj.SolutionsService.API.csproj" + ], + "isBackground": true, + "presentation": { + "reveal": "always", + "panel": "new", + "clear": false + }, + "problemMatcher": { + "owner": "aspnetcore", + "pattern": [{ "regexp": ".+" }], + "background": { + "activeOnStart": true, + "beginsPattern": ".+", + "endsPattern": "Now listening on:|Application started\\." + } + } + }, + { + "label": "Start NotificationsService.API", + "type": "process", + "command": "dotnet", + "args": [ + "run", + "--project", + "${workspaceFolder}/HwProj.NotificationsService/HwProj.NotificationsService.API/HwProj.NotificationsService.API.csproj" + ], + "isBackground": true, + "presentation": { + "reveal": "always", + "panel": "new", + "clear": false + }, + "problemMatcher": { + "owner": "aspnetcore", + "pattern": [{ "regexp": ".+" }], + "background": { + "activeOnStart": true, + "beginsPattern": ".+", + "endsPattern": "Now listening on:|Application started\\." + } + } + }, + { + "label": "Start ContentService.API", + "type": "process", + "command": "dotnet", + "args": [ + "run", + "--project", + "${workspaceFolder}/HwProj.ContentService/HwProj.ContentService.API/HwProj.ContentService.API.csproj" + ], + "isBackground": true, + "presentation": { + "reveal": "always", + "panel": "new", + "clear": false + }, + "problemMatcher": { + "owner": "aspnetcore", + "pattern": [{ "regexp": ".+" }], + "background": { + "activeOnStart": true, + "beginsPattern": ".+", + "endsPattern": "Now listening on:|Application started\\." + } + } + }, + { + "label": "Start Frontend", + "type": "process", + "command": "npm", + "args": ["run", "dev"], + "options": { + "cwd": "${workspaceFolder}/hwproj.front" + }, + "isBackground": true, + "presentation": { + "reveal": "always", + "panel": "new", + "clear": false + }, + "problemMatcher": { + "owner": "vite", + "pattern": [{ "regexp": ".+" }], + "background": { + "activeOnStart": true, + "beginsPattern": ".+", + "endsPattern": "Local:|ready in" + } + } + } + ] +} \ No newline at end of file From 0a7fd2e95f76ae9290db10887e4b5b692f49f6b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=BE=D1=81=D0=B8=D0=BD=20=D0=A1=D0=B5=D0=BC=D1=91?= =?UTF-8?q?=D0=BD?= Date: Wed, 22 Apr 2026 20:25:25 +0300 Subject: [PATCH 2/3] update readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3616f03fb..5b42e2ea5 100644 --- a/README.md +++ b/README.md @@ -71,10 +71,10 @@ HwProj — это веб-сервис, созданный для автомат #### Бекенд В Rider - запустить конфигурацию Start All -В Visual Studio - запустить сервисы ApiGateway.API, AuthService.API, CoursesService.API, SolutionsService.API, NotificationsService.API, ContentService.API +В Visual Studio - запустить задачу StartAll (Terminal -> Run Task... -> StartAll) или Start Backend #### Фронтенд -0. Вызвать `npm run dev` в `HwProj-2.0.1/hwproj.front` (Start All в Rider запустит и фронтенд) +0. Вызвать `npm run dev` в `HwProj-2.0.1/hwproj.front` (Start All запустит и фронтенд) ### Генерация ts-клиента после изменения контрактов ApiGateway 0. Запустить ApiGateway From e599d0b7c18a5de82105f12c8dce680c2a43f0a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=BE=D1=81=D0=B8=D0=BD=20=D0=A1=D0=B5=D0=BC=D1=91?= =?UTF-8?q?=D0=BD?= Date: Wed, 22 Apr 2026 20:37:55 +0300 Subject: [PATCH 3/3] fix: readme --- .vscode/tasks.json | 2 +- README.md | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index bab3eee01..bf8fff26d 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -2,7 +2,7 @@ "version": "2.0.0", "tasks": [ { - "label": "StartAll", + "label": "Start All", "dependsOn": ["Start Backend", "Start Frontend"], "dependsOrder": "parallel", "problemMatcher": [] diff --git a/README.md b/README.md index 5b42e2ea5..6d9b49d7c 100644 --- a/README.md +++ b/README.md @@ -71,10 +71,12 @@ HwProj — это веб-сервис, созданный для автомат #### Бекенд В Rider - запустить конфигурацию Start All -В Visual Studio - запустить задачу StartAll (Terminal -> Run Task... -> StartAll) или Start Backend +В Visual Studio - запустить сервисы ApiGateway.API, AuthService.API, CoursesService.API, SolutionsService.API, NotificationsService.API, ContentService.API + +В Visual Studio Code - запустить задачу Start All (Terminal -> Run Task... -> StartAll) или Start Backend #### Фронтенд -0. Вызвать `npm run dev` в `HwProj-2.0.1/hwproj.front` (Start All запустит и фронтенд) +0. Вызвать `npm run dev` в `HwProj-2.0.1/hwproj.front` (Start All в Rider и VSCode запустит и фронтенд) ### Генерация ts-клиента после изменения контрактов ApiGateway 0. Запустить ApiGateway