Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.16 KB

BuildingLocally.md

File metadata and controls

40 lines (27 loc) · 1.16 KB

Building Locally

Dependencies

Authentication

To get an access token for calling the sample API, use dotnet user-jwts. For example:

cd sample\CustomerApi
dotnet user-jwts create --name "Bob Bobertson" --role "Customers.Read" --role "Customers.ReadWrite" --role "Customers.Delete" --role "Customers.Create"

Generate token for .http files

The CustomerApi sample contains a couple of .http files that can be used for calling the API during development. To quickly generate a token and add it to the the http-client.private.env.json, just run

.\build\Generate-DevToken.ps1

Integration Tests

The LogOtter.CosmosDb.ContainerMock.IntegrationTests project uses Testcontainers to run a CosmosDB Emulator in a docker container. On first run, this can sometimes fail when run in VS/Rider with the error:

Status 404: {"message":"No such image: testcontainers/ryuk:0.3.4"}

To fix this issue, ensure you have pulled the testcontainers/ryuk container.

docker pull testcontainers/ryuk:0.3.4