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:
- Blockchain Integration: Utilizes Ethereum blockchain for secure, decentralized data storage.
- Smart Contracts: Implements smart contracts using Solidity to automate verification processes.
- QR Code Verification: Assigns a unique QR code to each product for easy verification by consumers.
- Frontend Development: Builds a user-friendly interface with Next.js for seamless user experience.
- Local Testing: Uses Truffle and Ganache for robust local testing of smart contracts.
- 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.
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.
- Node.js https://nodejs.org/en
- Truffle https://archive.trufflesuite.com/docs/truffle
- Ganache https://archive.trufflesuite.com/docs/ganache
- Metamask https://metamask.io
- Infura Account https://www.infura.io
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.
-
Get a free API Key at https://www.infura.io
-
Clone the repo
git clone https://github.com/your_username_/Project-Name.git
-
Install NPM packages
npm install
-
Connect your Metamask Wallet at https://metamask.io And change the network to Sepolia TestNet.
-
Make a file named
keys.json
INFURA_PROJECT_ID = 'ENTER YOUR API '; MNEMONIC = 'ENTER YOUR MNEMONIC PHRASE FROM THE METAMASK WALLET';
-
Initialize:
truffle compile truffle migrate
-
For Local Testing ONLY
-
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.
-
Deploy the smart contract using
truffle migrate --network sepolia
-
Run the deployment server
npm run dev
Distributed under the MIT License. See LICENSE.txt
for more information.