### Run Nutrient Document Engine Example with Docker Source: https://github.com/pspdfkit/pspdfkit-server-example-nodejs/blob/master/README.md Clones the Node.js example repository and starts the application and Document Engine using Docker Compose for quick setup. ```Shell $ git clone https://github.com/PSPDFKit/pspdfkit-server-example-nodejs.git $ cd pspdfkit-server-example-nodejs $ docker compose up ``` -------------------------------- ### Run Nutrient Document Engine Example Locally Source: https://github.com/pspdfkit/pspdfkit-server-example-nodejs/blob/master/README.md Clones the Node.js example repository, installs dependencies using npm, and starts the application directly on the local machine without Docker. ```Shell $ git clone https://github.com/PSPDFKit/pspdfkit-server-example-nodejs.git $ cd pspdfkit-server-example-nodejs $ npm install $ npm start ``` -------------------------------- ### Start Document Engine with Activation Key Source: https://github.com/pspdfkit/pspdfkit-server-example-nodejs/blob/master/README.md Provides a Nutrient Document Engine activation key as an environment variable to start the Docker Compose environment, enabling licensed features. Includes commands for both Linux/macOS and Windows. ```Shell $ ACTIVATION_KEY=YOUR_ACTIVATION_KEY_GOES_HERE docker compose up ``` ```Shell $ SET "ACTIVATION_KEY=YOUR_ACTIVATION_KEY_GOES_HERE" $ docker compose up ``` -------------------------------- ### Activate AI Assistant with OpenAI API Key Source: https://github.com/pspdfkit/pspdfkit-server-example-nodejs/blob/master/README.md Sets the OpenAI API key as an environment variable and starts the Docker Compose environment to enable the AI Assistant feature within the application. ```Shell $ OPENAI_API_KEY=YOUR_OPENAI_API_KEY_GOES_HERE docker compose up ``` -------------------------------- ### Reset Nutrient Document Engine Docker Environment Source: https://github.com/pspdfkit/pspdfkit-server-example-nodejs/blob/master/README.md Tears down Docker containers and volumes, then recreates them to reset the Document Engine server state. Options include a basic reset or resetting while reapplying an activation key for Linux/macOS and Windows. ```Shell $ docker compose down --volumes $ docker compose up ``` ```Shell $ docker compose down --volumes $ ACTIVATION_KEY=YOUR_ACTIVATION_KEY_GOES_HERE docker compose up ``` ```Shell $ docker compose down --volumes $ SET "ACTIVATION_KEY=YOUR_ACTIVATION_KEY_GOES_HERE" $ docker compose up ``` -------------------------------- ### Reset Docker Compose Containers and Volumes Source: https://github.com/pspdfkit/pspdfkit-server-example-nodejs/blob/master/README.md This command stops and removes all containers, networks, and volumes associated with the current Docker Compose setup. It is useful for resolving issues where containers are in a broken state by providing a clean slate. ```sh docker compose down --volumes ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.