JavaScript: Building Liberator

The example JavaScript code is meant to be run in NodeJS with an installable package in the module directory. You will need the pfx file in the module directory for the project to run. The NodeJS module is simply a wrapper around the RESTful API.

Helper functions are provided in the code.

The liberator service is a restful API allowing authenticated users access to the hosted data sets.

Online access to the latest samples can be found at https://dev.azure.com/cloudquant/_git/Public?path=%2Fliberator%2Fjs&version=GBmaster

Requirements

  • NodeJS / NPM
  • Security Access
    • PFX file to be placed in the module directory
    • Username & Token (placed in liberator.json file in the client directory)

Demo Installation

Installing the demo package is a simple and straightforward process.

  1. From the command prompt, navigate to the client directory
  2. npm install
  3. node index.js

Custom Installation

To use this module in your own package. Simply run this in the command prompt in your project’s base directory

npm install /path/to/module directory --save