From 04443494b07e489c422c58d8c6b1d98c07929543 Mon Sep 17 00:00:00 2001 From: biharck Date: Fri, 19 Apr 2019 09:58:30 -0300 Subject: [PATCH] adding orthanc configuration file and into the readme file --- config-react/local_orthanc.json | 21 +++++++++++++++++++++ docs/latest/essentials/getting-started.md | 11 +++++++---- 2 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 config-react/local_orthanc.json diff --git a/config-react/local_orthanc.json b/config-react/local_orthanc.json new file mode 100644 index 000000000..da1562da9 --- /dev/null +++ b/config-react/local_orthanc.json @@ -0,0 +1,21 @@ +{ + "servers": { + "dicomWeb": [ + { + "name": "Orthanc", + "wadoUriRoot": "http://localhost:8042/wado", + "qidoRoot": "http://localhost:8042/dicom-web", + "wadoRoot": "http://localhost:8042/dicom-web", + "qidoSupportsIncludeField": false, + "imageRendering": "wadors", + "thumbnailRendering": "wadors", + "requestOptions": { + "auth": "orthanc:orthanc", + "logRequests": true, + "logResponses": false, + "logTiming": true + } + } + ] + } +} diff --git a/docs/latest/essentials/getting-started.md b/docs/latest/essentials/getting-started.md index 51a651b59..f9e3d28b1 100644 --- a/docs/latest/essentials/getting-started.md +++ b/docs/latest/essentials/getting-started.md @@ -114,9 +114,11 @@ Once you have Orthanc running with docker either with temporary data storage or 1. Load orthanc with a dataset you might want to use. To upload data use [http://localhost:8042/app/explorer.html](http://localhost:8042/app/explorer.html). -**orthanc is username and password for orthanc docker** + **orthanc is the username and password for orthanc docker** -2. After you load the data, open a new terminal tab in the `ohif-viewer` directory and install all dependency packages via NPM +2. Go under [http://localhost:8042/app/explorer.html#upload](http://localhost:8042/app/explorer.html#upload) and upload your DICOM files there + +3. After you load the data, open a new terminal tab in the `ohif-viewer` directory and install all dependency packages via NPM ````bash cd Packages-react/ohif-viewer @@ -124,10 +126,11 @@ Once you have Orthanc running with docker either with temporary data storage or ```` 3. Run the application using one of the available configuration files. + **the following command assumes you are under `Packages-react/ohif-viewer` folder** ````bash - REACT_APP_CONFIG=$(cat ../../config-react/ccc.json) - npm start + export REACT_APP_CONFIG=$(cat ../../config-react/local_orthanc.json) + yarn start ```` This uses the [Custom Environment Variables of Create-React-App](https://facebook.github.io/create-react-app/docs/adding-custom-environment-variables) to pass in your configuration. The example above will not work on Windows. Please visit the link to read about how to set environment variables on Windows.