https://github.com/zuboy/fake-product-detection-using-blockchain
A Dapp using Ethereum to combat counterfeiting. It employs smart contracts to validate product authenticity and tracking via MetaMask and Web3.js integration.
https://github.com/zuboy/fake-product-detection-using-blockchain
block ethereum-contract ethereum-dapp
Last synced: 3 months ago
JSON representation
A Dapp using Ethereum to combat counterfeiting. It employs smart contracts to validate product authenticity and tracking via MetaMask and Web3.js integration.
- Host: GitHub
- URL: https://github.com/zuboy/fake-product-detection-using-blockchain
- Owner: Zuboy
- License: mit
- Created: 2023-12-14T06:30:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-22T18:59:16.000Z (7 months ago)
- Last Synced: 2025-02-06T19:24:16.112Z (5 months ago)
- Topics: block, ethereum-contract, ethereum-dapp
- Language: JavaScript
- Homepage:
- Size: 28.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fake Product Detection

## 🌟 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.