AgriVerifyy is a blockchain-based solution for agricultural supply chain management and product verification. This project aims to enhance transparency, traceability, and trust in the agricultural industry by leveraging blockchain technology.
- Blockchain-based product verification
- QR code generation for agricultural products
- User authentication and authorization
- Product registration and tracking
- Supply chain management
- Responsive web interface
- Solidity (for smart contracts)
- Hardhat (Ethereum development environment)
- React.js (frontend framework)
- Next.js (React framework for server-side rendering)
- Ethers.js (Ethereum library)
- Tailwind CSS (for styling)
- Node.js (v14 or later)
- npm
- MetaMask browser extension
-
Clone the repository:
git clone https://github.com/keyabist/AgriVerifyy.git cd AgriVerifyy -
Install dependencies:
npm install
The usage section is crucial for users to understand how to interact with your application. Follow these steps to run and use the AgriVerifyy application:
-
Start the development server:
npm run dev -
Open your browser and navigate to
http://localhost:3000 -
Connect your MetaMask wallet to interact with the dApp
-
Use the application to register products, generate QR codes, verify products, and manage the supply chain
Note: Ensure that you have set up your MetaMask wallet correctly and connected it to the appropriate network (e.g., Ethereum mainnet, testnet, or local development network) before interacting with the dApp.
The smart contracts for this project are located in the contracts directory. The main contract is AgriVerifyy.sol, which handles product registration, verification, and supply chain management.
To compile and deploy the smart contracts:
-
Compile contracts:
npx hardhat compile -
Deploy contracts:
npx hardhat run scripts/deploy.js --network <your-network>
The frontend is built using React.js and Next.js. The main components and pages are located in the pages and components directories.
Key features of the frontend include:
- User authentication
- Product registration form
- QR code generation
- Product verification
- Supply chain management interface
Contributions are welcome! Please feel free to submit a Pull Request.
https://drive.google.com/file/d/1_8-ZYdYPxcs5Z_N_197lLgpOAQGY1WyR/view?usp=sharing
This project is licensed under the MIT License.