From 85b671d701595034225814657b73101d01da7f70 Mon Sep 17 00:00:00 2001 From: yoju0121 <61430790+yoju0121@users.noreply.github.com> Date: Tue, 7 Jun 2022 12:12:21 -0700 Subject: [PATCH] Changes are to convey that launching a web browser does not automatically happen with running the server. --- Build-and-debug-locally.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Build-and-debug-locally.md b/Build-and-debug-locally.md index b8a80c8..0aae617 100644 --- a/Build-and-debug-locally.md +++ b/Build-and-debug-locally.md @@ -13,9 +13,8 @@ https://dotnet.microsoft.com/en-us/download/dotnet ## Running and debugging locally * Ensure the Cosmos DB Emulator and Azure Storage Emulator are running * Open Microsoft.Health.Fhir.sln, set Microsoft.Health.Fhir.R4.Web (or Microsoft.Health.Fhir.Stu3.Web) as StartUp Project, and press F5 -* This will launch a web browser * If you get a timeout error with respect to initializing the DocumentClient (which is used to talk to the Cosmos DB instance) make sure Cosmos DB emulator is running and you are able to access it normally. If it still does not work, create an actual Cosmos DB instance on Azure and update the Host and Key properties in appsettings.json file -* If the web page shows a HTTP 401 error, that is expected. As long as you are able to hit the metadata endpoint (https://localhost:44348/metadata?_format=json&_pretty=true) it means that the server is running. +* Launch a web browser and navigate to `https://localhost:44348`. If the web page shows a HTTP 401 error, that is expected. As long as you are able to hit the metadata endpoint (https://localhost:44348/metadata?_format=json&_pretty=true) it means that the server is running. * (Optional) If you would like to debug locally without the need to fetch an auth token, you can disable the "FhirServer:Security:Enabled" setting in the "appSettings.json" file. * From here we recommend looking at the example FHIR HTTP Requests in the [docs/rest](https://github.com/microsoft/fhir-server/tree/main/docs/rest) folder such as the [SearchExamples](https://github.com/microsoft/fhir-server/blob/main/docs/rest/SearchExamples.http).