Coder Social home page Coder Social logo

joel-dandin / health-blockchain Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ibm-cloud/health-blockchain

0.0 0.0 0.0 21.75 MB

Created for toolchain: https://cloud.ibm.com/devops/toolchains/666169c3-251e-4fc5-a1fb-9cc0bedb5cd5?env_id=ibm:yp:eu-de

Home Page: https://dev-fitchain.mybluemix.net

License: Other

JavaScript 31.27% HTML 0.08% CSS 59.35% Swift 8.26% Shell 1.04%

health-blockchain's Introduction

Health Blockchain

โš ๏ธ WORK IN PROGRESS

Build Status Coverage Status Bluemix Deployments

Overview

A blockchain for fitness data demo.

fitchain views

Blockchain is first and foremost about a peer to peer exchange of value. The following demonstration reviews the exchange of an individual's fitness/workout data for various rewards from organizations they interact with.

In the demo, the workout/health data never leaves the person's phone. The person accepts a fitness challenge from an organization, and each time their workout matches the challenge criteria, it is recorded as a transaction in a block.

During the demo, we will view what the individual sees, what a network administrator sees, and what the organization sees. We look behind the scenes at the blockchain fabric where fitness challenge data exists and explore the tenets of:

  • Shared ledger [ participants only see transactions they're entitled to see ]
  • Trust [ endorsements, assets ]
  • Privacy [ anonymity ]
  • Smart contract [ verifiable, queryable, searchable, encrypted ]

Prerequisites

  • IBM Bluemix account. Sign up for Bluemix, or use an existing account.
  • Node.js >= 6.9.1 - nvm is recommended.

Deploying the app automatically in Bluemix

The app comes with a toolchain you can use to deploy the solution with few clicks. If you want to deploy it manually, you can skip this section.

  1. Ensure your organization has enough quota for one web application using 256MB of memory and 2 services.

  2. Click Deploy to Bluemix to start the Bluemix DevOps wizard:

    Deploy To Bluemix

  3. Select the GitHub box.

  4. Decide whether you want to fork/clone the app repository.

  5. If you decide to Clone, set a name for your GitHub repository.

  6. Select the Delivery Pipeline box.

  7. Select the region, organization and space where you want to deploy the app.

  8. Click Create.

  9. Select the Delivery Pipeline.

  10. Wait for the Deploy job to complete.

  11. Access the app when it's ready and start uploading videos and images!

Run the app locally

  1. Clone the app to your local environment from your terminal using the following command:

    git clone https://github.com/IBM-Bluemix/health-blockchain.git
    
  2. cd into this newly created directory

  3. Create a Cloudant service in Bluemix

    cf create-service cloudantNoSQLDB Lite health-blockchain-db
    
  4. In the checkout directory, copy the file vcap-local.template.json to vcap-local.json. Edit vcap-local.json and update the credentials for the Cloudant service. You can retrieve the service credentials from the Bluemix console.

    cp vcap-local.template.json vcap-local.json
    
  5. Get the project dependencies

    npm install
    
  6. Run the app

    npm start
    

Data Model and API

Refer to API.md for details on the app architecture.

License

See License.txt for license information.

Privacy Notice

This application is configured to track deployments to IBM Bluemix and other Cloud Foundry platforms. The following information is sent to a Deployment Tracker service on each deployment:

  • Node.js package version
  • Node.js repository URL
  • Application Name (application_name)
  • Application GUID (application_id)
  • Application instance index number (instance_index)
  • Space ID (space_id)
  • Application Version (application_version)
  • Application URIs (application_uris)
  • Labels of bound services
  • Number of instances for each bound service and associated plan information

This data is collected from the package.json file in the sample application and the VCAP_APPLICATION and VCAP_SERVICES environment variables in IBM Bluemix and other Cloud Foundry platforms. This data is used by IBM to track metrics around deployments of sample applications to IBM Bluemix to measure the usefulness of our examples, so that we can continuously improve the content we offer to you. Only deployments of sample applications that include code to ping the Deployment Tracker service will be tracked.

Disabling Deployment Tracking

Deployment tracking can be disabled by removing require("cf-deployment-tracker-client").track(); from the beginning of the app.js file.

health-blockchain's People

Contributors

antonmc avatar rvennam987 avatar l2fprod avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.