0.53.0-web-2500-tide-backend-integration.1 • Published 8 months ago

exadoctor-platform-client v0.53.0-web-2500-tide-backend-integration.1

Weekly downloads
-
License
BSD-2-Clause
Repository
github
Last release
8 months ago

tidepool-platform-client

Build Status

Client-side library to interact with the Tidepool platform.

Dependencies:

Usage

Install with:

$ npm install --save tidepool-platform-client

Use with Webpack or Browserify:

var createTidepoolClient = require('tidepool-platform-client');

var tidepool = createTidepoolClient({
  host: 'https://api.tidepool.org',
  uploadApi: 'https://uploads.tidepool.org',
  dataHost: 'https://data.tidepool.org',
  log: {
    warn: function() {},
    info: function() {},
    debug: function() {}
  },
  localStore: window.localStorage,
  metricsSource: 'myApp',
  metricsVersion: '0.1.0'
});

Test

Integration tests

$ npm test

To run the integration tests you need to be running platform components locally, see the runservers script.