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.
- 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.
Follow the steps below to get started with MedRecChain:
- Clone the repository:
git clone https://github.com/MedRecChain/MedRecChain.git
- Install the required dependencies:
npm install
- Configure the Ethereum network or provider in the
truffle-config.js
file. - Compile the smart contracts:
truffle compile
- Deploy the smart contracts:
truffle migrate
- Start the development server:
npm start
npm i --location=global ipfs
jsipfs daemon
to visit it click
http://127.0.0.1:5002/webui
- 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
We welcome contributions to MedRecChain. If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.