A minimal node.js express app which has integrated PrizmDoc Cells.
- Node.js 8 or higher
Configure how to connect to PrizmDoc Cells by editing the config.json5
file (this is just a JSON file with comments).
For PrizmDoc Cloud:
{
"cellsServerBaseUrl": "https://api.accusoft.com/cells",
"apiKey": "YOUR_API_KEY"
}
For self-hosted:
{
"cellsServerBaseUrl": "YOUR_CELLS_SERVER_BASE_URL",
}
Alternately, you can set or override any of these values via environment variables:
CELLS_SERVER_BASE_URL
API_KEY
npm install
To start the app:
npm start
This will launch a small web application on http://localhost:8888
.
You should see output like this:
> node index.js
[HPM] Proxy created: /cells-server-proxy/clientControl -> https://api.accusoft.com/cells
[HPM] Proxy rewrite rule created: "^/cells-server-proxy" ~> ""
[HPM] Subscribed to http-proxy events: [ 'error', 'close' ]
Application running at http://localhost:8888
When you visit http://localhost:8888
, you should see the contents of an XLSX
file inside of an interactive Workbook Control: