Skip to content

Latest commit

 

History

History
70 lines (59 loc) · 1.72 KB

HowToRun.md

File metadata and controls

70 lines (59 loc) · 1.72 KB

Dependencies

All that is necessary to run the backend solution:

Run Service

Run Migration

In SuperHeroBacked -> SuperHero.Api
Add database connection string in appSettings.json

"ConnectionStrings": {
    "DefaultConnection": "xpto"
  }

In SuperHeroBacked -> SuperHero.Api -> Migrations
Execute:

dotnet ef database update



Configure App Settings

In appSettings.json
Configure:

  • Port for application use on applicationUrl
  • If you do not want to start a browser when running set "launchBrowser": false
"profiles": {
    "Default": {
      "commandName": "Project",
      "dotnetRunMessages": true,
      "launchBrowser": true,
      "launchUrl": "swagger",
      "applicationUrl": "https://localhost:7027;http://localhost:5207",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    }
  }



Run Application

Run the Default profile in Visual Studio Run Default Profile

Or run via CLI in folder SuperHero.Api
Execute:

dotnet run