Update StandaloneViewer Usage docs (thanks @JamesAPetts)

This commit is contained in:
Erik Ziegler 2018-06-13 11:59:50 +02:00 committed by GitHub
parent 0c2fa1616c
commit 534299fdb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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](https://github.com/frozeman/meteor-build-client).
1. First, install [meteor-build-client-fixed](https://github.com/brettg2/meteor-build-client/).
```bash
sudo npm install -g meteor-build-client
````bash
sudo npm install -g meteor-build-client-fixed
````
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 ../myOutputFolder -u localhost:3000
METEOR_PACKAGE_DIRS="../../Packages" meteor-build-client-fixed ../myOutputFolder -u localhost:3000
````
@ -72,12 +72,6 @@ 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
Note: Right now there is a bug in meteor-build-client (https://github.com/frozeman/meteor-build-client/issues/34) which produces two CSS files instead of one. Since this second CSS file is not included properly, the page will appear broken. To fix this, all you have to do is open index.html and add the following at the top of the page.
````html
<link rel="stylesheet" type="text/css" class="__meteor-css__" href="/[whatever your missing CSS filename is].css?meteor_css_resource=true">
````
### 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.