Changes are to convey that launching a web browser does not automatically happen with running the server.

yoju0121 2022-06-07 12:12:21 -07:00
Родитель dc53c4852e
Коммит 85b671d701
1 изменённых файлов: 1 добавлений и 2 удалений

@ -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).