(after the image is published by CI):
docker pull ghcr.io/muhfred/taxcal-api:latest
docker run --rm -p 5132:8080 ghcr.io/muhfred/taxcal-api:latestThen browse http://localhost:5132/swagger (use HTTP only; HTTPS in the container is not configured for local runs).
docker build -t taxcal-api:local -f src/TaxCal.Api/Dockerfile .
docker run --rm -p 5132:8080 taxcal-api:localRun with Docker Compose (builds from source and uses Development env for Swagger):
docker compose up --buildThen browse http://localhost:5132/swagger.
On pushes to main and tags like v1.2.3, the workflow Build and publish Docker image publishes to GHCR as:
ghcr.io/<OWNER>/taxcal-api:latest(main only)ghcr.io/<OWNER>/taxcal-api:<git-sha>ghcr.io/<OWNER>/taxcal-api:vX.Y.Z(tag only)
dotnet run --project src/TaxCal.ApiRuns with the default profile (HTTP at http://localhost:5132). To use HTTPS or a specific profile:
dotnet run --project src/TaxCal.Api --launch-profile httpsThen open http://localhost:5132/swagger (or the URL shown in the console).
- Open
TaxCal.sln. - Set TaxCal.Api as the startup project (right‑click → Set as Startup Project).
- Press F5 (or Debug → Start Debugging) to run with debugging, or Ctrl+F5 to run without.
Swagger opens at the URL from your selected launch profile (e.g. http://localhost:5132/swagger).