Skip to content

Commit

Permalink
setup vscode launch.json and tasks.json to run the whole solution
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpaulovich committed Oct 22, 2020
1 parent 87c0d9a commit 381fd74
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 31 deletions.
63 changes: 36 additions & 27 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,15 @@
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"version": "0.2.0",
"configurations": [
{
"name": "Docker .NET Core Attach (Accounts APi)",
"type": "docker",
"request": "attach",
"platform": "netCore",
"sourceFileMap": {
"/src": "${workspaceFolder}/accounts-api"
}
},
"compounds": [
{
"name": "Docker .NET Core Attach (Preview)",
"type": "docker",
"request": "attach",
"platform": "netCore",
"sourceFileMap": {
"/src": "${workspaceFolder}"
}
},
"name": "Identity Server & Accounts API & SPA",
"configurations": ["Accounts API", "Identity Server", "SPA"]
}
],
"configurations": [
{
"name": ".NET Core Launch (Identity Server)",
"name": "Identity Server",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
Expand All @@ -38,14 +26,20 @@
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_URLS": "https://localhost:5000",
"ASPNETCORE_HTTPS_PORT": "5000",
"IDENTITY_SERVER_ORIGIN": "https://localhost:5000",
"RedirectUris": "https://localhost:5002/callback",
"PostLogoutRedirectUris": "https://localhost:5002",
"AllowedCorsOrigins": "https://localhost:5002"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},
{
"name": ".NET Core Launch (Accounts API)",
"name": "Accounts API",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
Expand All @@ -60,24 +54,39 @@
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_URLS": "https://localhost:5001",
"ASPNETCORE_HTTPS_PORT": "5001",
"PersistenceModule__DefaultConnection": "Server=localhost;User Id=sa;Password=<YourStrong!Passw0rd>;Database=Accounts;",
"AuthenticationModule__AuthorityUrl": "https://localhost:5000"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
"name": "SPA",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}/wallet-spa",
"runtimeExecutable": "npm",
"runtimeArgs": ["run-script", "start"]
},
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"name": "Debug SPA",
"url": "https://localhost:5002",
"webRoot": "${workspaceFolder}/wallet-spa"
},
{
"name": "Accounts API (Docker)",
"type": "docker",
"request": "attach",
"platform": "netCore",
"sourceFileMap": {
"/src": "${workspaceFolder}/accounts-api"
}
}
]
}
14 changes: 14 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "seeddb",
"command": "docker-compose",
"type": "process",
"args": [
"up",
"-d",
"accounts-api-seed"
],
"problemMatcher": "$msCompile",
"options": {
"cwd": "${workspaceFolder}/.docker"
},
}
]
}
52 changes: 52 additions & 0 deletions wallet-spa/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions wallet-spa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@testing-library/user-event": "^7.2.1",
"@types/node": "^14.11.2",
"axios": "^0.19.0",
"env-cmd": "^10.1.0",
"font-awesome": "^4.7.0",
"fontsource-roboto": "^3.0.3",
"jquery": "^3.4.1",
Expand All @@ -23,10 +24,10 @@
"reactstrap": "^8.0.0"
},
"scripts": {
"start": "NODE_ENV=localhost react-scripts start",
"start-localhost": "NODE_ENV=localhost react-scripts start",
"start-development": "NODE_ENV=development react-scripts start",
"start-docker": "NODE_ENV=docker react-scripts start",
"start": "env-cmd -f .env.localhost react-scripts start",
"start-localhost": "env-cmd -f .env.localhost react-scripts start",
"start-development": "env-cmd -f .env.development react-scripts start",
"start-docker": "env-cmd -f .env.docker react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
Expand Down

0 comments on commit 381fd74

Please sign in to comment.