GithubHelp home page GithubHelp logo

yenxuan1381 / anti-counterfeit-product-identification-system-using-blockchain Goto Github PK

View Code? Open in Web Editor NEW
36.0 1.0 4.0 6.29 MB

This repository contains the code for an innovative anti-counterfeit product identification system that utilizes the unique capabilities of blockchain technology. The system provides a secure and transparent platform for tracking and verifying the authenticity of products across various industries.

JavaScript 92.16% HTML 1.17% CSS 5.07% Solidity 1.59%
blockchain blockchain-technology counterfeit counterfeiting etheruem final-year-project hardhat nodejs postgres postgresql

anti-counterfeit-product-identification-system-using-blockchain's Introduction

Anti-Counterfeit Product Identification System Using Blockchain

The Anti-Counterfeit Product Identification System Using Blockchain is an innovative solution that uses blockchain technology to combat counterfeit products in various industries. It uses QR codes, smart contracts, and the Ethereum network to provide a secure and transparent platform for tracking and verifying product authenticity. The system is significant in addressing global supply chain issues by reducing the prevalence of counterfeit goods and enhancing transparency and trust.

Live Demo

Here is a live demo of the full functionality of the project

Product Live Demo

Here is a blog plost of this project: https://medium.com/p/68d23c7bc41c

Table of Contents

Overview

The Anti-Counterfeit Product Identification System Using Blockchain is a groundbreaking solution designed to combat global supply chain issues related to counterfeit products. It leverages the unique capabilities of blockchain technology to provide a secure and transparent platform for tracking and verifying the authenticity of products across various industries.

The system uses QR codes, an overt technology that can be scanned by a smartphone app, to verify product information and origin. It employs smart contracts to store and execute product verification logic on the blockchain, ensuring tamper-proof data and trustless transactions. The Ethereum network serves as its decentralized database to store product information and status, accessible by authorized parties. A web interface, powered by React, allows users to interact with the system and view product information and history.

The technologies used in this system include Solidity for smart contract development, Hardhat for Ethereum development environment, React for building the user interface, Node.js for backend development, and ethers.js for interacting with the Ethereum blockchain.

This system is significant in solving global supply chain issues as it provides a reliable method to verify the authenticity of products, thereby reducing the prevalence of counterfeit goods. It enhances transparency and trust among stakeholders in the supply chain, from manufacturers to consumers.

Basic Walkthrough

  • The identeefi-backend-node directory contains the codebase for the backend of the system.
  • The identeefi-frontend-react directory contains the codebase for the frontend of the system.
  • The identeefi-postgres-database directory contains the csv files for the backend database.
  • The identeefi-smartcontract-solidity directory contains the smart contract deployed to the Ethereum network.

Technologies Used

  • Solidity
  • Hardhat
  • React
  • Node.js
  • ethers.js

Features

  • QR Codes: The system uses QR codes as an overt technology that can be scanned by a smartphone app to verify the product information and origin.
  • Smart Contracts: The system uses smart contracts to store and execute the product verification logic on the blockchain, ensuring tamper-proof data and trustless transactions.
  • Ethereum Network: The system uses the Ethereum network as its decentralized database to store the product information and status, which can be accessed by authorized parties.
  • Web Interface: The system uses a web interface powered by React to allow users to interact with the system and view the product information and history.

Project Setup

To get started with this project,

  1. Clone the repository.
  2. In identeefi-postgres-database, import the csv files to your own postgres database.
  3. In identeefi-backend-node, run npm i to install the dependencies and change the postgres credentials to your postgres crediantials and run node postgres.js to start the backend execution.
  4. In identeefi-frontend-react, run npm i to install the dependencies and run npm start to start localhost.
  5. You can inspect identeefi-smartcontract-solidity directory to view the smart contract details that is deployed to the Sepolia Testnet.
  6. To perform transactions, setup your Metamask wallet and connect your wallet to the Sepolia Tesnet Network and transact using SepoliaETH which can be obtained for free on Seplolia Faucet (https://sepoliafaucet.com/).

For more information, you can view our user manual: View User Manual

anti-counterfeit-product-identification-system-using-blockchain's People

Contributors

yenxuan1381 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

anti-counterfeit-product-identification-system-using-blockchain's Issues

Isssue regarding setting up the etherium testnet.

I have connected the database on my side and also the project is working but it is not working in full functionality since maybe I am don't know if I am connecting my wallet in right way . I don't know what to include in .env file and this is my first project working with smart contracts so I am having some issue with it . Also my laptop camera is not good and it takes lot of time scanning the qr is it it possible to add upload qr functionality along with scanning qr code for easier experience. Any help would be much appreciated . Thank you.

There's upstream dependancy conflict regarding react while installing dependencies in the frontend

Cannot install the dependencies. Using --force or --legacy-peer-deps creates problems.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @material-ui/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^18.2.0" from the root project
npm ERR! peer react@">=16.8.0" from @emotion/[email protected]
npm ERR! node_modules/@emotion/react
npm ERR! @emotion/react@"^11.10.6" from the root project
npm ERR! peer @emotion/react@"^11.0.0-rc.0" from @emotion/[email protected]
npm ERR! node_modules/@emotion/styled
npm ERR! @emotion/styled@"^11.10.6" from the root project
npm ERR! 5 more (@mui/lab, @mui/material, @mui/styled-engine, ...)
npm ERR! 5 more (@mui/lab, @mui/material, @mui/styled-engine, ...)
npm ERR! 28 more (@emotion/styled, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.0" from @material-ui/[email protected]
npm ERR! node_modules/@material-ui/core
npm ERR! @material-ui/core@"^4.12.4" from the root project
npm ERR! peer @material-ui/core@"^4.12.1" from @material-ui/[email protected]
npm ERR! node_modules/@material-ui/lab
npm ERR! @material-ui/lab@"^4.0.0-alpha.61" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR! peer react@"^16.8.0 || ^17.0.0" from @material-ui/[email protected]
npm ERR! node_modules/@material-ui/core
npm ERR! @material-ui/core@"^4.12.4" from the root project
npm ERR! peer @material-ui/core@"^4.12.1" from @material-ui/[email protected]
npm ERR! node_modules/@material-ui/lab
npm ERR! @material-ui/lab@"^4.0.0-alpha.61" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

provided only the conflict part ^.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.