LIFESCOPE Contributor Quickstart

Join the developer team

Developer Setup

Change your host file

127.0.0.1     app.lifescope.io api.lifescope.io xr.lifescope.io static.lifescope.io

Install and run NGINX

Config in lifescope-api

sudo nginx -p . -c nginx.conf

Add Config Files to API, ETL, APP

Add node config files for production variables.

Such as:

/config/dev.json
or
/config/prod.json

{
  "bitscoop": {
    "api_key": "[key]"
  },
  "mongodb": {
    "address": "mongodb://[user]:[password]@[url]/live?ssl=true&replicaSet=[lifescope-shards]authSource=admin"
  }
}

How to debug:

RUN APP

NODE_ENV=dev babel-node server.js --inspect-brk=localhost:3333

In Chrome go to: chrome://inspect/#devices

Configure > Target: apl.lifescope.io:3333

GraphQL Playground web interface for API

Example on glitch:
https://apl.lifescope.io:3333/gql-p/