Skip to content

unknown91tech/GuardianChain

Repository files navigation


About The Project

Screenshot 2024-06-05 195449

Screenshot 2024-06-05 195507

Screenshot 2024-06-05 195536

Screenshot 2024-06-05 200137

Screenshot 2024-06-05 200017

Screenshot 2024-06-05 200212

Screenshot 2024-06-05 200219

Screenshot 2024-06-05 200228

Screenshot 2024-06-05 200248

Screenshot 2024-06-05 200302

Screenshot 2024-06-05 200354

Screenshot 2024-06-05 200411

Screenshot 2024-06-05 200456

GuardianChain: Fake Product Identification Using Blockchain

Project Description: GuardianChain is a blockchain-based solution for detecting and preventing fake products. By leveraging the power of blockchain, QR code technology, and modern web development frameworks, GuardianChain provides a secure and immutable platform for verifying product authenticity. This project uses Solidity for smart contracts, Next.js for the frontend, Truffle and Ganache for local testing, and the Infura API for deployment.

Features:

  1. Blockchain Integration: Utilizes Ethereum blockchain for secure, decentralized data storage.
  2. Smart Contracts: Implements smart contracts using Solidity to automate verification processes.
  3. QR Code Verification: Assigns a unique QR code to each product for easy verification by consumers.
  4. Frontend Development: Builds a user-friendly interface with Next.js for seamless user experience.
  5. Local Testing: Uses Truffle and Ganache for robust local testing of smart contracts.
  6. Deployment: Deploys smart contracts and data using the Infura API.

Technology Stack:

  • Blockchain: Ethereum
  • Smart Contracts: Solidity
  • Frontend: Next.js, React
  • Testing: Truffle, Ganache
  • Deployment: Infura API

Use the BLANK_README.md to get started.

(back to top)

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Prerequisites

  1. Node.js https://nodejs.org/en
  2. Truffle https://archive.trufflesuite.com/docs/truffle
  3. Ganache https://archive.trufflesuite.com/docs/ganache
  4. Metamask https://metamask.io
  5. Infura Account https://www.infura.io

Installation

Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services.

  1. Get a free API Key at https://www.infura.io

  2. Clone the repo

    git clone https://github.com/your_username_/Project-Name.git
  3. Install NPM packages

    npm install
  4. Connect your Metamask Wallet at https://metamask.io And change the network to Sepolia TestNet.

  5. Make a file named keys.json

    INFURA_PROJECT_ID = 'ENTER YOUR API ';
    MNEMONIC = 'ENTER YOUR MNEMONIC PHRASE FROM THE METAMASK WALLET';
  6. Initialize:

    truffle compile
    truffle migrate
  7. For Local Testing ONLY

  8. Configuration:-

    *Set Up Ganache: Start Ganache and configure the RPC server to http://127.0.0.1:7545.

    *Connect Metamask: Connect your Metamask wallet to the Ganache local blockchain.

    *Infura Deployment: Set up an Infura project and add your Infura project ID in the Truffle configuration file.

  9. Deploy the smart contract using

      truffle migrate --network sepolia
  10. Run the deployment server

      npm run dev

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •