Skip to content

Drug supply chain management system using blockchain to avoid drug counterfeit

License

MIT, Apache-2.0 licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE.APACHE2
Notifications You must be signed in to change notification settings

tanishka786/Drug_Blockchain

Repository files navigation

1. Project Title

  • Drug Guardian

2. Created by

  • Tanishka Das
  • Pallavi Dhandar
  • Jatush Hingu
  • Akash Nadar

3. Description

This website is a comprehensive platform developed to ensure the transparency, security, and efficiency of the drug supply chain. Built with HTML, CSS, and JavaScript for the front end, it provides an intuitive and user-friendly interface. The blockchain component, developed using Solidity and deployed on the Sepolia testnet, guarantees immutable and secure transactions, tracking drugs from the manufacturer to the consumer. Docker is used for containerization, ensuring scalability, portability, and easy deployment across different environments. Additionally, Truffle and Ganache UI have been utilized for blockchain development and testing. We also integrated an AI chatbot to enhance user interaction and support within the platform.

4. Features

  • Secure tracking of drugs from manufacturing to delivery
  • Tamper-proof records
  • Real-time monitoring and verification
  • Compliance with regulations
  • Access controls for different stakeholders
  • AI chatbot for user support

5. Technology Stack

  • Blockchain platform: Ethereum, Geth (Testnet)
  • Smart contract languages: Solidity
  • Frontend technologies: React JS
  • Backend technologies: Node.js
  • Metamask for Geth Testnet interaction ( by adding network manually)
  • Docker for containerization
  • Truffle for smart contract development and migration
  • Ganache UI for blockchain testing
  • AI chatbot for user assistance

6. Installation Instructions

Prerequisites

Additional Dependencies

Steps

  1. Clone the project.

  2. Navigate to the project directory.

  3. Install dependencies:

    npm install
  4. Configure the blockchain network:

    • Install Ganache.
    • Install Metamask and create an account.
    • Connect Metamask to Ganache by importing accounts into Metamask.
    • Connect Ganache with the Truffle configuration file (truffle-config.js) by adding the port number and network ID.
  5. Initialize the project with Metamask Snap Box:

    truffle unbox metamask/snap-box <dir_name>
  6. Compile and migrate smart contracts:

    npx truffle compile
    npx truffle migrate
  7. Navigate to the client directory:

    cd client
  8. Install client dependencies:

    yarn
    npm install
  9. Start the application:

    yarn start
    npm start

7. Usage

  • Interacting with the blockchain network:
    • Access the Metamask wallet linked to the Geth Testnet to monitor transactions
    • Use the AI chatbot to guide you through the process
  • Managing drug supply chain records:
    • View and update drug records on the platform, which are securely stored and tracked on the blockchain
  • Verifying transactions:
    • Verify the authenticity of transactions using the blockchain explorer linked with Sepolia Testnet

8. Smart Contracts

  • Description:
    • The smart contracts handle drug creation, tracking, and delivery verification
  • Deployment:
    • Contracts are deployed on the Sepolia testnet using Truffle and Ganache UI
  • Functions:
    • Functions include adding drugs to the supply chain, tracking their movement, and verifying delivery

9. Contributing

  • Submit issues: Please open an issue via the GitHub repository.
  • Propose changes: Submit pull requests for review.
  • Code of conduct: Follow the project’s code of conduct, which is available in the repository.

10. License

  • Distributed under the MIT License.

11. Contact Information

13. Future Work

  • Integrating AI-based analytics to predict supply chain delays
  • Expanding the platform for global drug tracking across multiple countries
  • Additional user roles for greater access control

14. Resources

15. Development Process

  • Blockchain setup:
    • We used Ganache UI to simulate the Ethereum blockchain locally.
    • Contracts were written in Solidity and migrated using Truffle.
    • Interactions between the front end and blockchain were made possible with Web3.js.
  • AI Chatbot:
    • An AI-powered chatbot is integrated for user support, assisting with navigating the platform and providing guidance on supply chain interactions.

16. Contribution

  • As an open source project feel free to fork, modify, and contribute to it 😎 .

17. Setps to run the project

  • Step1: Clone the project: https://github.com/tanishka786/Drug_Blockchain.git (use GitHub desktop which enables collaboration from the desktop, allowing users to create issues or pull requests to work with others on projects.)

  • Step2: Watch the video tutorial : !!!!!!!!!BAKI CHE !!!!!!

  • Step3: Enjoy!!!😎 your project is now fully set up and ready to use ✌🏻.

18. Live Website:

About

Drug supply chain management system using blockchain to avoid drug counterfeit

Resources

License

MIT, Apache-2.0 licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE.APACHE2

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published