Giter VIP home page Giter VIP logo

distributed-healthcare-system's Introduction

D-Healthcare

D-Healthcare is a blockchain-based decentralized application for storing and sharing of EMR (Electronic Medical Records) of patients. It provides an end-to-end solution for a healthcare system while securely storing patient medical records, and giving patients control over their data.

Prerequisites:

  1. Truffle

    • Truffle is a framework used for building blockchain based applications. It eases the process of writing and deploying smart contracts.
    • Truffle can be installed with NPM via the command line

      $ npm install -g truffle

    • If NPM is not installed, it can installed using this link - https://nodejs.org/en/download/
  2. Ganache

    • Ganache is a tool, part of the Truffle suite, that creates a private Ethereum based blockchain on a local system and can be used for testing contracts and development purposes.
    • Ganache can be installed using NPM

      $ npm install ganache --global

    • Alternatively, Ganache can be downloaded and installed from here - https://trufflesuite.com/ganache/
  3. React

    • ReactJS is a JavaScript library that is used for building user interfaces. It is one of the famous frontend frameworks for developing single page applications.
    • First, we need to install create-react-app

      npm install create-react-app

    • This create-react-app can be used on the command line to create React projects
  4. MetaMask

    • Metamask is a browser extension that is used to manage crypto wallets and helps browsers connect to blockchain. It allows users to interact with decentralized applications.
    • This browser extension for Chrome can be downloaded from here.

Steps to run:

  1. Clone this GitHub repository
  2. Run Ganache and copy the addresses provided from ganache to Health.sol
  3. Open terminal and run:

    truffle migrate --reset

  4. Copy the json files from build/contracts folder to frontend/abis
  5. Open another terminal and run the following commands:

    cd frontend
    npm i
    npm start

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.