### Install build dependencies with npm install
Source: https://github.com/accusoft/prizmdoc-viewer/blob/master/README.md
Installs all necessary build dependencies for the PrizmDoc Viewer client assets. Run this once before building.
```bash
npm install
```
--------------------------------
### One-time build with npm run build
Source: https://github.com/accusoft/prizmdoc-viewer/blob/master/README.md
Performs a one-time build of your changes, compiling files in src/ and outputting assets to dist/.
```bash
npm run build
```
--------------------------------
### Proxy HTTP requests to PrizmDoc with httpProxyMiddleware
Source: https://github.com/accusoft/prizmdoc-viewer/blob/master/README.md
Sets up a proxy through a node express app to PrizmDoc. Required for Accusoft-hosted PrizmDoc; the acs-api-key header is not needed for self-hosting.
```javascript
let proxy = httpProxyMiddleware('/prizmdoc', {
target: 'https://api.accusoft.com',
changeOrigin: true, // necessary if converting from HTTP to HTTPS
headers: { 'acs-api-key': 'PUT_YOUR_ACCUSOFT_API_KEY_HERE' }, // required for Accusoft-hosted PrizmDoc
logLevel: 'debug'
});
app.use(proxy);
```
--------------------------------
### Watch for changes with npm run watch
Source: https://github.com/accusoft/prizmdoc-viewer/blob/master/README.md
Watches for changes and automatically runs a development build on each change.
```bash
npm run watch
```
--------------------------------
### Initialize pccViewer with viewingSessionId
Source: https://github.com/accusoft/prizmdoc-viewer/blob/master/README.md
Initializes the PrizmDoc viewer on a div using the pccViewer jQuery plugin. Pass the viewingSessionId to the documentID option, set imageHandlerUrl to the proxy route, and viewerAssetsPath to the static assets route. annotationsMode 'LayeredAnnotations' uses JSON markup format; attachmentViewingMode 'ThisViewer' opens attachments in the same window.
```html
```
--------------------------------
### Include required CSS files
Source: https://github.com/accusoft/prizmdoc-viewer/blob/master/README.md
Includes the required CSS files, assuming your web application maps requests to viewer/css/... to the css subdirectory.
```html
```
--------------------------------
### Include required JavaScript files
Source: https://github.com/accusoft/prizmdoc-viewer/blob/master/README.md
Includes the required JavaScript files, assuming your web application maps requests to viewer/js/... to the js subdirectory.
```html
```
--------------------------------
### Add required meta tags to HTML head
Source: https://github.com/accusoft/prizmdoc-viewer/blob/master/README.md
Required meta tags for the HTML head to ensure the viewer works well across browsers and devices.
```html
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.