This is the Javascript Web SDK of GesundheitsCloud, which encapsulates the backend functionality of the platform and enables end-to-end encryption of patient data. It allows users to store sensitive health data on the secure GesundheitsCloud platform and share it to authorized people and applications.
For more information about the platform please visit our website.
To use the SDK, you need to create a client id from GesundheitsCloud. Please get in touch with us at info@gesundheitscloud.de.
- node, npm/yarn
In the directory run:
npm install
This SDK uses webpack for its bundling task. Building the SDK bundle is done with :
npm run buildDuring development, you can let webpack watch for file changes and rebuild your bundle using:
npm run watchImport the built file in your project to start using the SDK.
Note: Edit the config.js file accordingly in case of any change in dependent api url and build the sdk. Currently the config for staging url looks like:
api: 'https://staging.hpihc.de'The SDK uses karma, mocha, sinon, and chai for unit tests.
For running all tests, execute:
npm testIt uses eslint to check and report incorrect indentations and patterns in the project, bundles the project, run unit tests and makes a coverage report.
For running the unit tests only, execute:
npm run karma:prodDuring development, use can watch for any file changes and rerun the tests on any change using:
npm run karmaFor running only eslint execute:
npm run lint