Dare-marvel / Aarogya-Coin-Electronic-Health-Records-Blockchain-Mini-Project

🔐📊 Aarogya Coin: Reinventing Healthcare Records 🚀 Experience the future of Electronic Health Records (EHR) with SecureEHR. Utilizing blockchain for security and granular access control, while addressing scalability challenges, SecureEHR ensures a seamless and secure healthcare data management experience. 💪🏥
MIT License
0 stars 0 forks source link
blockchain electronic-health-records ethereum html-css-javascript smart-contracts

Docker Hub

AarogyaCoin : Health Records Management Using Blockchain

Introduction

The aim of this framework is firstly to implement blockchain technology for EHR and secondly to provide secure storage of electronic records by defining granular access rules for the users of the proposed framework. Moreover, this framework also discusses the scalability problem faced by the blockchain technology in general via use of off-chain storage of the records. This framework provides the EHR system with the benefits of having a scalable, secure and integral blockchain-based solution.

Installation

The projects requires NodeJS and npm to work. Instructions to install all other dependencies are given below.

Node modules

  1. Move to the project directory and open it in your terminal.
  2. Run npm install to install project dependenccties.

Ganache

  1. Go to Ganache homepage and download.
  2. If you are on Linux, you must have received an .appimage file. Follow installation instructions available here.

Install IPFS in Windows

Install Go

Create Paths

Install Dependencies

Install IPFS

Local server

  1. Install Node lite-server by running the following command on your terminal npm install -g lite-server

Metamask

  1. Metamask is a browser extension available for Google Chrome, Mozilla Firefox and Brave Browser.
  2. Go to the this link and add Metamask to your browser.

Getting the dApp running

Configuration

1. Ganache

2. IPFS

Smart Contract

  1. Install Truffle using npm install truffle -g
  2. Compile Contracts using truffle compile

1. Starting your local development blockchain

  1. Open new Terminal and deploy contracts using truffle migrate
  2. Copy deployed contract address to src/app.js alt text
// app/src/app.js  line number 11
var agentContractAddress = '0x75E115394aacC7c6063E593B9292CB9417E4cbeC';
  1. If you change contents of any contract , replace existing deployment using truffle migrate --reset

    Note : reset of the contract will change the contract Address which needs to be updated in src/app.js

Running the dApp

1. Connecting Metamask to our local blockchain

2. Starting IPFS

3. Start a local server