LogoLogo
Enterprise GuideCommunity Edition GuideDeveloper Guide
  • Using The Polarity Developer Guide
  • Quick Start
    • What's New
    • Installing Integrations
    • Quick Start Guide
    • Learning Resources
  • Building an Integration
    • Directory Layout
    • package.json
    • Configuration File
    • Integration Main Module
      • startup
      • doLookup
        • Entity Objects
        • Result Objects
        • Error Objects
      • onDetails
      • onMessage
      • validateOptions
    • Customizing the Overlay Window
      • Templates
        • Conditionals
        • Displaying a List of Items
        • Display Object Properties
        • Built-in Helpers
        • Displaying Icons
      • Component File
        • Aliased Properties
        • Computed Properties
        • Event Hooks
      • CSS Styles
    • Vendor Javascript
      • Inserting Javascript into DOM
    • README Guide
    • Debugging Integrations
      • Web Inspector
      • Using Integration Logs
      • Testing Main Module
  • Recipes
    • Enabling User Actions
    • Throttling Lookups
    • Using Custom Entity Types
    • Custom Summary Tags
    • Creating a Tabbed Interface
    • Accessing Username of Requestor
Powered by GitBook
On this page
  1. Quick Start

Installing Integrations

Integrations can be installed by moving the integration into the integrations directory on your Polarity Server. The integrations directory defaults to /app/polarity-server/integrations. There should be a directory for each integration.

/app/polarity-server/integrations
├── generic-rest/
├── virustotal/
├── google-maps/
└── crits

As an example, the above directory structure has four installed integrations (generic-rest, virustotal, google-maps, and crits).

If you have changed the default integration directory you can check your Polarity Server configuration file /app/polarity-server/config/config.js and check the integrations.path property to find your integration installation path.

Once you have copied the integration to your integrations folder you will need to install the node modules that the integration depends on.

Navigate into the integration directory and run the command npm install to install all the dependencies.

cd /app/polarity-server/integrations/generic-rest
npm install --production

You will notice that after the npm install command there will be a node_modules directory inside your integration directory. You also need to ensure that all files in your integration are owned by the polarityd user. You can do this with the following command:

chown -R polarityd:polarityd /app/polarity-server/integrations/generic-rest

Finally, you need to restart Polarity Server for the integration to be loaded the first time.

systemctl restart polarityd

Note that after the first time an integration is installed you can restart the integration from the Polarity Integration user interface and do not need to restart the Polarity Server in the event that you make changes to the integration.

PreviousWhat's NewNextQuick Start Guide

Last updated 5 years ago