Coder Social home page Coder Social logo

medygon's Introduction

Medygon ๐Ÿ‘พ

This project was a part of Ingenious Hackathon 3.0

Overview

  • 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.

Pre-requisities

Node, npm, Truffle, Ganache, React, Metamask

Tech Stack

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

Architecture

Processes

Demo

Insert gif or link to demo

Run Locally

Clone the project

  git clone https://kutt.it/medygon

Ganache

  • 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

IPFS

  • 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"]'

Truffle

  npm install -g truffle
  truffle compile
  truffle migrate --network matic

Running the DApp

  • Connect Metamask to localhost:8485

Install dependencies

  npm i

Start the server

  npm start
  • Open localhost:3000

Authors

License

MIT

medygon's People

Contributors

sameepv21 avatar samkitk avatar parthmshah1302 avatar

Watchers

 avatar

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.