A modern, responsive product authenticity system for electronic devices, currently implemented as a web app with QR-based verification. Blockchain integration is planned for the future.
- Manufacturer Portal: Register products and generate QR codes
- Retailer Portal: Record sales and buyer information
- Customer Portal: Verify authenticity and view sale history
- Modern UI: Clean, professional interface with smooth user experience
- Responsive: Optimized for all device sizes
- Planned Blockchain: Future-proof design for decentralized verification
- Web app built with Vite, React, and TypeScript
- All data managed within the app (blockchain integration not yet implemented)
- QR codes generated for each product for customer verification
- Integrate blockchain (Ethereum) to store product registration, sales, and verification data
- Use smart contracts for tamper-proof authenticity records
- Enable decentralized verification for customers
| Tool | Purpose |
|---|---|
| Code editing | |
| Version control | |
| Project hosting |
- Clone the repository:
git clone <repository-url>
cd blockauth- Install dependencies:
npm install- Start the development server:
npm run dev- Open http://localhost:5173 in your browser.
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run lint- Run ESLint
src/
โโโ components/ # Reusable UI components
โ โโโ ui/ # Shadcn/ui panels (Manufacturer, Retailer, Customer)
โ โโโ ... # Custom components
โโโ hooks/ # Custom React hooks
โโโ lib/ # Utilities (blockchain, QR, etc.)
โโโ pages/ # Main and 404 pages
โโโ main.tsx # Application entry point
You can customize colors, fonts, and other design tokens in the src/index.css file. Update contract addresses and ABI in src/lib/utils.ts as needed (for blockchain integration).
This project is open source and available under the MIT License.