- You will need to have
nodejs
andnpm
setup and installed. - If you would like to make use of the AWS features such DynamoDB and SecretsManager make sure to have
you
aws cli
setup and configured. (Remember to export your bash variables for AWS environment variables)
npm install -r package.json
-
Create a new service account inside MDH for your organization. Read Service Account documentation
-
Set the required environment variables.
export RKS_PROJECT_ID=<project id from MDH>
export RKS_SERVICE_ACCOUNT=<Service account id>
# Pass the private key.
export RKS_PRIVATE_KEY=`cat ../datahelps_api/myprivate.key`
node index.js
If the code runs successfully, you will see a list of Fitbit, Apple Healthkit and Google Fit steps data printed out for each participant.