Skip to content

MedRecChain/MedRecChain

Repository files navigation

About The Project

MedRecChain is a decentralized solution for Electronic Medical Records sharing systems (EMR). It utilizes the Ethereum network and IPFS technology to provide a secure and transparent platform for managing and sharing medical records.

Live Demo

Requirements

  • NodeJS >= 10.16 and npm >= 5.6 installed.
  • Git installed in the system.
  • Truffle, which can be installed globally with npm install -g truffle
  • Metamask extension added to the browser.
  • Ganache development network.

Built With

How To Use

Follow the steps below to get started with MedRecChain:

Getting Started

  1. Clone the repository: git clone https://github.com/MedRecChain/MedRecChain.git
  2. Install the required dependencies: npm install

To deploy the Smart Contract

  1. Configure the Ethereum network or provider in the truffle-config.js file.
  2. Compile the smart contracts: truffle compile
  3. Deploy the smart contracts: truffle migrate

To run the React development server

  1. Start the development server: npm start

To Run IPFS locally

Install

npm i --location=global ipfs

Run server

jsipfs daemon

to visit it click http://127.0.0.1:5002/webui

!! to avoid the forbidden Error that happens when you upload images

open PowerShell then write this

- jsipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '[\"http://127.0.0.1:5002\", \"http://localhost:3000\", \"http://127.0.0.1:5001\", \"https://webui.ipfs.io\"]'

- jsipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '[\"PUT\", \"POST\"]'

also Don't forget to open Server jsipfs daemon

Contributing

We welcome contributions to MedRecChain. If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.