Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 1.47 KB

README.md

File metadata and controls

56 lines (41 loc) · 1.47 KB

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.