Collective changes since fork

This commit is contained in:
dannyrb committed 2019-05-13 14:19:33 -04:00
1 parent e501f268bf
commit e12214395b
9 files changed
+570 -3

No files matched your search

+13 -3
View File
@@ -29,16 +29,16 @@ http://localhost:3000/testDICOMs
It is possible to build this standalone viewer to run as a client-only bundle of HTML, JavaScript, and CSS.
1. First, install [meteor-build-client-fixed](https://github.com/brettg2/meteor-build-client/).
1. First, install [meteor-build-client-fixed2](https://www.npmjs.com/package/meteor-build-client-fixed2).
````bash
sudo npm install -g meteor-build-client-fixed
sudo npm install -g meteor-build-client-fixed2
````
2. Next, build the client bundle into an output folder ("myOutputFolder") with a base URL ("localhost:3000"). In production, this would be the URL where the Viewer is available.
````
METEOR_PACKAGE_DIRS="../../Packages" meteor-build-client-fixed ../myOutputFolder -u localhost:3000
METEOR_PACKAGE_DIRS="../../Packages" meteor-build-client-fixed2 ../myOutputFolder -u localhost:3000 --legacy
````
3. Test the bundled client-side package locally.
@@ -70,6 +70,16 @@ It is possible to build this standalone viewer to run as a client-only bundle of
Open your web browser and navigate to http://localhost:3000/sampleJPEG.json or http://localhost:3000/sampleDICOM.json
## Authorization Header
A ```token``` fragment parameter can be specified. If present this value will be used for http bearer authorization when making requests for the above JSON, and when retrieving images using the Cornerstone Image Loaders.
Example :
```
http://localhost:3000/sampleDICOM.json#token=1a2b3c4d
```
### Testing the Sample client-only build
For the sake of simplicity we have also included a pre-built client-only version of the standalone viewer, which can be found in the SampleClientOnlyBuild folder.