| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A modern, full-stack, blockchain-powered product authentication and supply chain tracking platform designed to combat counterfeit products. The platform utilizes Ethereum smart contracts, a React + Vite frontend styled with Tailwind CSS (v4), an Express API backend, and MongoDB storage.
BlockVerify/ ├── contracts/ # Solidity smart contracts │ ├── BlockVerify.sol # Main provenance logic │ ├── BlockVerifyWarranty.sol # Warranty manager │ └── BlockVerifyNFT.sol # ERC-721 NFT certificate ├── scripts/ # Hardhat deployment scripts │ └── deploy.js # Contract deployment and ABI sync script ├── test/ # Smart contract unit tests │ └── BlockVerify.test.js # Chai unit test suite ├── server/ # Backend API Node │ ├── config/ # DB config (db.js) │ ├── models/ # Mongoose models (User, Product, Transaction, etc.) │ ├── routes/ # API controllers (auth, manufacturer, seller, consumer, admin) │ ├── utils/ # Fraud detection heuristics │ └── server.js # Express server entry point ├── src/ # Frontend Application │ ├── assets/ # Custom styling and animations │ ├── components/ # Reusable Glassmorphism UI components │ ├── context/ # Web3 & JWT Auth contexts │ ├── contracts/ # Compiled contract ABIs and dynamic address mapping │ ├── pages/ # Dashboard screens (Landing, Verify, dashboards) │ ├── main.jsx # Application root │ └── index.css # Tailwind CSS v4 root import ├── hardhat.config.js # Hardhat environment settings ├── vite.config.js # Vite server & proxy configurations └── package.json # Project scripts and dependencies
git clone https://github.com/Suvesh108/BlockVerify.git
cd BlockVerify
npm installTo compile contracts and deploy them locally on a Hardhat network:
# 1. Compile contracts
npx hardhat compile
# 2. Run Hardhat unit tests to verify stability
npx hardhat test
# 3. Spin up local Hardhat node in a separate terminal
npx hardhat node
# 4. Deploy contracts to the local network
npx hardhat run scripts/deploy.js --network localhostDeployment automatically updates ABIs and contract address references inside the src/contracts/ directory for immediate frontend ingestion.
Create a .env file in the root directory and specify your MongoDB connection (falls back to local mongodb://localhost:27017/blockverify if omitted):
PORT=5000
MONGODB_URI=mongodb://localhost:27017/blockverify
JWT_SECRET=your_jwt_signing_secret_hereTo run the Express backend API and Vite dev server concurrently, simply run:
npm startThis project is licensed under the MIT License - see the LICENSE file for details.
| Back | FazBrowse Home | New Git URL |