/GenoDonor

Primary LanguageJavaScript

express

How to run

Register your app

Visit "My apps" console and set

  • Name: as you like
  • Redirect uris: http://127.0.0.1:3000/callback

Set scopes (whitelists) in "Authorization scopes" panel.

  • report:eye-color
  • report:beard-thickness
  • report:morning-person

Run your app

$ npm install
$ export GENOMELINK_CLIENT_ID=<your_client_id>
$ export GENOMELINK_CLIENT_SECRET=<your_client_secret>
$ export GENOMELINK_CALLBACK_URL="http://127.0.0.1:3000/callback"
$ node app.js

then, visit http://127.0.0.1:3000

How it works

See https://genomelink.io/developers/docs/tutorial-oauth-example/

Requirements

Node >= 8.9.0