How kadamyogiraj/project1 works
CertChain is a React certificate lifecycle application: administrators connect a wallet, register students, and issue certificates; students access certificates, while anyone can check authenticity, including from QR codes. The blockchain context wraps the ethers-based service, and a separate app context caches certificate details in local storage. The README documents the portal capabilities; some page and admin-component wiring is unsampled, so those links reflect documented responsibilities rather than inspected calls.
Main entry points: AdminPortal.tsx Admin portal · App.tsx App router · blockchain.ts Blockchain service · VerifyCertificate.tsx Certificate verification
Components 19
Portals and verification
- App router
src/App.tsx - Home page
src/pages/Index.tsx - Student portal
src/pages/StudentPortal.tsx - Certificate verification
src/pages/VerifyCertificate.tsx
Administration and issuance
- Admin portal
src/pages/AdminPortal.tsx - Register students
src/components/admin/RegisterStudent.tsx - Issue certificates
src/components/admin/IssueCertificate.tsx - View records
src/components/admin/ViewAllRecords.tsx - Analytics dashboard
src/components/admin/AnalyticsDashboard.tsx - Certificate preview
src/components/admin/CertificatePreview.tsx
Blockchain integration
- Wallet and contract context
src/contexts/BlockchainContext.tsx - Blockchain service
src/lib/blockchain.ts
Application state
- Certificate cache
src/contexts/AppContext.tsx - Browser local storage
Other components
- Administrator
- Student
- Verifier
- MetaMask wallet
- Ethereum / Ganache
Connections 17
- App router → Home page: routes to
- App router → Admin portal: routes to
- App router → Student portal: routes to
- App router → Certificate verification: routes to
- Administrator → Admin portal: uses
- Student → Student portal: uses
- Verifier → Certificate verification: submits certificate
- Home page → Certificate verification: links to
- Admin portal → Register students: provides registration
- Admin portal → Issue certificates: provides issuance
- Admin portal → View records: provides records
- Admin portal → Analytics dashboard: provides analytics
- Issue certificates → Certificate preview: previews certificate
- Wallet and contract context → Blockchain service: calls
- Blockchain service → MetaMask wallet: requests wallet access
- Blockchain service → Ethereum / Ganache: reads and writes
- Certificate cache → Browser local storage: reads and writes