Skip to content

kebetsi/app-example-arkathon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

app-arkathon-example

helper gists for Pryv users

Prerequisites

Run npm install to fetch the dependencies

Useful links

Pryv platform

middleware

Patient account creation

We haven't made available the user creation on Pryv, you may do this manually on the following page: https://sw.pryv.me/access/register.html

After user creation, you may implement a login into the patient's Pryv account using the Login part.

Otherwise, generate a token using the app token generation app

Login

If you wish to integrate a login for you app, this is for you.

Simple login used to obtain an app token, with which you will be able to create the data structure (Streams) and data points (Events), as well as Access tokens for care takers, family, insurers and other eHeahlth stakeholders.

run npm run login to compile login.js with its dependencies in dist/login.js

Open www/login.html to display a simple web page containing the login button

Structure creation

To generate the structure for you Pryv data, you may use the code in src/js/createStructure.js to create it in a single batch call.

Events creation

Simple example to create an event in src/js/createEvent.js

Events fetching

Simple example to fetch events in src/js/getEvents.js

Access creation

Simple example to create an access in src/js/createAccess.js

About

helper gists for arkathon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published