Skip to content

A Dapp using Ethereum to combat counterfeiting. It employs smart contracts to validate product authenticity and tracking via MetaMask and Web3.js integration.

License

Notifications You must be signed in to change notification settings

Zuboy/Fake-Product-Detection-Using-Blockchain

Repository files navigation

Fake Product Detection

Scan to Check

🌟 Overview

A decentralized application (DApp) leveraging Ethereum Blockchain to detect counterfeit products. This project ensures transparency and authenticity in product verification by using smart contracts to store and validate product details.

🚀 Features

  • Blockchain Integration: Uses Ethereum for secure and immutable data storage.
  • Smart Contract Deployment: Validates product authenticity.
  • User-Friendly Interface: Seamless interaction with the DApp using MetaMask.

🛠️ Technologies Used

  • Languages: Solidity, JavaScript
  • Frameworks: Truffle, Ganache
  • Blockchain: Ethereum
  • Other Tools: MetaMask, Web3.js

📚 Prerequisites

  • Software:
    • Truffle v5.6.7
    • Ganache v7.5.0
    • Node.js v15.8.0
    • MetaMask browser extension
  • Environment: Chromium-based browser (e.g., Google Chrome)

🔧 Setup Instructions

  1. Clone the repository: -git clone https://github.com/Zuboy/Fake_Product_Detection_DApp.git
  2. Install dependencies: -npm install
  3. Compile and migrate contracts: -truffle compile -truffle migrate
  4. Start the development server: -npm run dev
  5. Connect MetaMask: -Add a local test network. -Import accounts from Ganache using private keys.

6.Interact with the DApp through the generated web interface.

📖 How It Works

Product Registration: Manufacturers add product details to the blockchain. Verification: Users verify authenticity by querying the blockchain using the product ID.

🤝 Contributions

Contributions are welcome! Fork the repository and submit pull requests for improvements.

About

A Dapp using Ethereum to combat counterfeiting. It employs smart contracts to validate product authenticity and tracking via MetaMask and Web3.js integration.

Topics

Resources

License

Stars

Watchers

Forks