Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
198 changes: 198 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
]
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это ведь для VS, а не VS Code. Для VS Code отдельно


#### Фронтенд
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
Expand Down
Loading