Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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": "Start All",
"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: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ HwProj — это веб-сервис, созданный для автомат

В 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 в Rider запустит и фронтенд)
0. Вызвать `npm run dev` в `HwProj-2.0.1/hwproj.front` (Start All в Rider и VSCode запустит и фронтенд)

### Генерация ts-клиента после изменения контрактов ApiGateway
0. Запустить ApiGateway
Expand Down
Loading