Skip to content

A blockchain-based platform for secure medical record storage and charitable healthcare campaigns. Users can store health documents securely and donate to support patients in need.

Notifications You must be signed in to change notification settings

txusif/MediChain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MediChain Dapp

MediChain is a decentralized app leveraging blockchain for secure medical data storage and sharing, featuring Metamask integration, distinct user roles, medical crowdfunding campaigns, and intuitive interface, deployed on Polygon Mumbai.

Explore Medichain🚀

Home Page

Table of Contents

Introduction

MediChain is built on blockchain technology, ensuring the privacy and security of medical records, enabling users to:

  • Connect their Metamask wallet for secure access.
  • Register as a patient, doctor, or lab.
  • Upload medical test reports to the patient's wallet.
  • View and search medical reports.
  • Create and donate to medical crowdfunding campaigns.
  • And much more.

Features

  • Secure Authentication: Users can securely connect their Metamask wallet for identity.
  • User Roles: Patients, doctors, and labs have distinct roles with specific permissions.
  • Medical Record Storage: Securely store medical records on the blockchain.
  • Campaigns: Create, browse, and donate to medical crowdfunding campaigns.
  • Intuitive Interface: User-friendly interface for a seamless experience.

Getting Started

Prerequisites

Before getting started, you'll need to have the following installed:

  • Node.js
  • Foundry (for smart contract development)
  • Metamask extension for your browser

Installation

  1. Clone the repository:

    git clone https://github.com/txusif/MediChain
    
  2. Navigate to the project directory:

    cd MediChain/client
    
  3. Install dependencies:

    npm install
    
  4. Run the Dapp:

    npm run dev
    

Tech Stack

This project is built using the following technologies and libraries:

  • Vite: A fast development build tool.
  • React: A JavaScript library for building user interfaces.
  • React Router: A routing library for React applications.
  • Tailwind CSS: A utility-first CSS framework.
  • Axios: A promise-based HTTP client for making network requests.
  • Ethers: A JavaScript library for interacting with the Ethereum blockchain.
  • Dotenv: A zero-dependency module that loads environment variables from a .env file.
  • React Copy to Clipboard: A React component that copies text to the clipboard.
  • React Hot Toast: A notifications library for React.
  • Thirdweb: A development framework for building decentralized applications on the Thirdweb blockchain.
  • Font Awesome: A library of icons.

Development Dependencies

Please refer to the package.json file for version information on these dependencies.

Contract Deployment

The contract for the Medichain app is deployed on the Polygon Mumbai network.

Usage

  • Visit the Dapp homepage.
  • Connect your Metamask wallet.
  • Register as a patient, doctor, or lab.
  • Use the respective features based on your role.

User Roles

  • Patient: View medical reports, create campaigns and fund campaigns.
  • Doctor: Search and view patient medical reports and fund campaigns.
  • Lab: Upload medical reports to patient wallets and fund campaigns.

Screenshots

Home Page

Home Page

Features Section

Features Section

Footer

Features Section

Connect Wallet

Connect Wallet

Choose Account

Choose Account

Doctor Registration

Register as Doctor

Lab Registration

Register as Lab

Upload Reports Page

Uplaod Reports Page

View Reports Page

View Reports Page

Search Reports Page

Search Reports Page

Create Campaign Page

Create Campaign Page

View Campaigns Page

View Campaigns Page

Campaign Details Page

Campaign Details Page

Fund a Campaign

Fund a Campaign

Profile Page

Profile Page

Contributing

If you'd like to contribute to this project, follow these simple steps:

  1. Fork the repository by clicking the "Fork" button.
  2. Create a new branch for your changes: git checkout -b feature/your-feature-name
  3. Make your desired changes and commit them: git commit -m 'Add your feature'
  4. Push your changes to the new branch on your fork: git push origin feature/your-feature-name
  5. Open a pull request (PR) on the original repository's GitHub pagVe.

I welcome contributions and appreciate your help in making this project better!

License

This project is licensed under the MIT License. This project is licensed under the MIT License.


For any questions or support, please contact txusif@gmail.com

About

A blockchain-based platform for secure medical record storage and charitable healthcare campaigns. Users can store health documents securely and donate to support patients in need.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published