This project was a part of Ingenious Hackathon 3.0
- Blockchain-based medical records on Polygon's Matic network
- Medygon solves the problem of tampering with medical records through blockchain's immutability.
- Currently, Doctors and Patients are the stakeholders considered in the transaction.
- Initially, the Patient grants access to the Doctor.
- Only after that, the Doctor can view the patient in his/her list and add documents for that Patient.
- The uploaded report can be viewed by the Patient - and each upload is identified by the Doctor's public key.
Node, npm, Truffle, Ganache, React, Metamask
Polygon: Ethereum sidechain to store the records
Solidity: To write smart contracts
Truffle: Compiling .sol files
Ganache: Personal local blockchain
IPFS: distributed hypermedia protocol
React: Client facing website
Insert gif or link to demo
git clone https://kutt.it/medygon
- Open the Ganache desktop client
- Under Server tab:
- Set Hostname to 127.0.0.1 -lo
- Set Port Number to 8545
- Enable Automine
- Under Accounts & Keys tab:
- Enable Autogenerate HD Mnemonic
- Fire up your terminal and run
ipfs init
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "POST", "GET"]'
npm install -g truffle
truffle compile
truffle migrate --network matic
- Connect Metamask to
localhost:8485
Install dependencies
npm i
Start the server
npm start
- Open
localhost:3000