Skip to content

Mayanksharma21/ChainCure-Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChainCure: Blockchain-based Pharmaceutical Supply Chain

ChainCure Home

Overview

ChainCure is a blockchain-based pharmaceutical supply chain project built on the Polygon TestNet. The project aims to enhance the transparency, traceability, and security of the pharmaceutical supply chain by leveraging blockchain technology. ChainCure involves three main stakeholders: Manufacturer, Distributor, and Pharmacy, each playing a crucial role in the supply chain process.

Features

  • Batch Creation: Manufacturers can register batches of drugs.
  • Batch Handover to Logistics: Manufacturers can hand over batches to logistics companies.
  • Batch Handover to Distributor: Logistics companies can hand over batches to distributors.
  • Batch Handover to Pharmacy: Distributors can hand over batches to pharmacies.
  • Tracking and Traceability: Detailed tracking of the creation and transfer of drug batches, including transfer addresses, types, batch IDs, timestamps, and photos.

Smart Contracts

  1. BatchCreation.sol

    • Allows manufacturers to register batches of drugs.
  2. BatchHandoverToLogistics.sol

    • Enables manufacturers to hand over batches to logistics.
  3. BatchHandoverToDistributor.sol

    • Facilitates logistics companies to hand over batches to distributors.
  4. BatchHandoverToPharmacy.sol

    • Permits distributors to hand over batches to pharmacies.
  5. PharmaceuticalSupplyChain.sol

    • Tracks the creation and transfer of drug batches, recording transfer addresses, types, batch IDs, timestamps, and photos.

Frontend

The frontend of ChainCure is built using React and Tailwind CSS, providing a modern and responsive user interface for interacting with the blockchain.

Getting Started

Prerequisites

  • Node.js and npm installed
  • Metamask extension installed in your browser
  • Access to Polygon TestNet

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/chaincure.git
    cd chaincure
  2. Install dependencies in each directory:

    npm install
  3. Run Server code:

    npm run dev
  4. Run frontend:

    npm run dev
    

Glimpse of Project

Login Page

Login Form

New Batch creation Page for Manufacturer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published