How utkarsh713/proof-of-work works
Proof of Work is a public-infrastructure verification platform. A user registers a work item with before/after evidence and location; the React application sends it to the Spring backend, which manages work and verification data and connects to the AI service. Results and related work information are then presented through verification, dashboard, feedback, and reporting views. The README documents GPS/time checks, AI analysis, citizen feedback, notifications, analytics, and audit logs; unsampled backend details are represented at their existing source paths, with edges limited to documented or indexed relationships.
Main entry points: App.jsx React routes · controller Spring REST controllers · repository Data repositories · workApi.js Work API client
Components 23
Web application
- React routes
frontend/src/App.jsx - Login and registration
frontend/src/pages/Register.jsx - Authentication API
frontend/src/api/authApi.js - Work registration
frontend/src/pages/RegisterWork.jsx - Work API client
frontend/src/api/workApi.js - Backend API client
frontend/src/api/apiClient.js - Dashboard and submissions
frontend/src/pages/Dashboard.jsx - AI verification view
frontend/src/pages/AIVerification.jsx - Citizen feedback
frontend/src/pages/CitizenFeedback.jsx - Maps and analytics
frontend/src/pages/Analytics.jsx - Reports and notifications
frontend/src/pages/Reports.jsx
Backend services
- Spring REST controllers
backend/src/main/java/com/proofofwork/demo/controller - Authentication service
backend/src/main/java/com/proofofwork/demo/service/AuthService.java - Work management
backend/src/main/java/com/proofofwork/demo/service/WorkService.java - Evidence handling
backend/src/main/java/com/proofofwork/demo/service/EvidenceService.java - Verification coordination
backend/src/main/java/com/proofofwork/demo/service/VerificationService.java - AI service client
backend/src/main/java/com/proofofwork/demo/client/AIServiceClient.java
AI analysis
- AI verification API
ai-service/main.py - Image forensics
ai-service/forensic_analysis.py
Persistence
- Data repositories
backend/src/main/java/com/proofofwork/demo/repository - Work and evidence records
backend/src/main/java/com/proofofwork/demo/entity - MySQL database
Other components
- Platform user
Connections 30
- Platform user → React routes: uses
README.md - React routes → Login and registration: routes to
frontend/src/App.jsx - React routes → Work registration: routes to
frontend/src/App.jsx - React routes → Dashboard and submissions: routes to
frontend/src/App.jsx - React routes → AI verification view: routes to
frontend/src/App.jsx - React routes → Citizen feedback: routes to
frontend/src/App.jsx - React routes → Maps and analytics: routes to
frontend/src/App.jsx - React routes → Reports and notifications: routes to
frontend/src/App.jsx - Login and registration → Authentication API: submits credentials
frontend/src/pages/Register.jsx - Work registration → Work API client: creates work
frontend/src/pages/RegisterWork.jsx - Dashboard and submissions → Work API client: loads works
frontend/src/pages/Dashboard.jsx - AI verification view → Work API client: loads works
frontend/src/pages/AIVerification.jsx - AI verification view → Spring REST controllers: requests verification
README.md - Citizen feedback → Spring REST controllers: submits feedback
README.md - Maps and analytics → Work API client: loads work data
frontend/src/pages/Analytics.jsx - Work API client → Backend API client: sends requests
frontend/src/api/workApi.js - Authentication API → Backend API client: sends requests
frontend/src/api/authApi.js - Backend API client → Spring REST controllers: calls REST API
README.md - Spring REST controllers → Authentication service: delegates auth
- Spring REST controllers → Work management: delegates work
- Spring REST controllers → Evidence handling: handles evidence
- Spring REST controllers → Verification coordination: starts verification
- Verification coordination → AI service client: requests analysis
README.md - AI service client → AI verification API: calls AI service
README.md - AI verification API → Image forensics: uses forensics
ai-service/main.py - Work management → Data repositories: persists work
README.md - Evidence handling → Data repositories: persists evidence
README.md - Verification coordination → Data repositories: stores results
README.md - Data repositories → Work and evidence records: maps records
- Data repositories → MySQL database: reads and writes
README.md