GithubHelp home page GithubHelp logo

ad-blockx's Introduction

BLOCKX

BlockX is a single platform which provides the blockchain as a service to various areas of implementation eg. health, insurance etc.

BLOCKX HEALTH

This is blockchain as a service deployed to specifically target the health service. Various interactions include:

  • Get total number of hospitals on the chain
  • Get the total number of patient visits recorded by every hospital on the chain
  • Get the total number of patient visits recorded by individual hospitals on the chain
  • Add (or register) hospital on the chain
  • Record a patient visit on the chain

Dependencies

This project represents a simple DAPP without any complications. Business logic is written in Solidity (version 0.4.24) and frontend is written in plain JavaScript. Other dependencies include:

  • Node v8
  • npm (or yarn)
  • Ganache (this is a local ethereum blockchain with 10 accounts to use)
  • MetaMask
  • Truffle

Installations

Nothing special to do here since every major dependencies is bundled as part of the application

Usage

To compile the smart contracts

npm run compile

To migrate onto a local blockchain (eg. Ganache). It might be helpful to set ganache settings to http://127.0.0.1:8545. If not, you need to ensure the config in truffle.js and truffle-config.js is updated.

npm run migrate:dev

To run a local simple static server of the frontend

npm run start:dev

To play with truffle console/develop environments

npm run dev
npm run dev:console

Testing

To run the test suite

npm run test

ad-blockx's People

Contributors

aduwillie avatar

Stargazers

 avatar

Watchers

James Cloos 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.