How pragnasri09/smart-governance-platform-for-administrative-operations-with-citizen-service-assistance works
CivicPulse is a citizen-service and administrative workflow platform: citizens report and track issues, staff process assigned work, and administrators oversee departments and service performance. The React application presents role-specific workflows and communicates with a Spring Boot API; the API coordinates governance operations, persistence, authorization, and impact analysis. The README documents MySQL/JPA persistence and major capabilities. Some backend and frontend subsystems are represented at their documented source locations because their implementation was not sampled; relationships are included only where the excerpts, source index, or README support them.
Main entry points: GovernanceService.java Workflow orchestration · GovernanceController.java Governance endpoints · App.tsx Role workflows · custom-fetch.ts React API client
Components 19
Citizen and Staff Web
- Role workflows
artifacts/smart-governance-platform/src/App.tsx - React API client
lib/api-client-react/src/custom-fetch.ts
Governance API
- Governance endpoints
springboot-server/src/main/java/in/gov/sgp/controller/GovernanceController.java - Workflow orchestration
springboot-server/src/main/java/in/gov/sgp/service/GovernanceService.java - API data contracts
springboot-server/src/main/java/in/gov/sgp/dto/Dtos.java - Location validation
springboot-server/src/main/java/in/gov/sgp/service/IndiaLocationValidator.java
Identity and Access
- Role authorization
springboot-server/src/main/java/in/gov/sgp/security/SecurityConfig.java - JWT tokens
springboot-server/src/main/java/in/gov/sgp/security/JwtService.java
Governance Data
- User records
springboot-server/src/main/java/in/gov/sgp/model/User.java - Complaint records
springboot-server/src/main/java/in/gov/sgp/model/Complaint.java - Department records
springboot-server/src/main/java/in/gov/sgp/model/Department.java - Complaint timeline
springboot-server/src/main/java/in/gov/sgp/model/ComplaintHistory.java - User notifications
springboot-server/src/main/java/in/gov/sgp/model/Notification.java - Contact messages
springboot-server/src/main/java/in/gov/sgp/model/ContactMessage.java - JPA repositories
springboot-server/src/main/java/in/gov/sgp/repository - MySQL database
Service Insights
- Impact scoring
springboot-server/src/main/java/in/gov/sgp/service/ImpactScoreService.java - Related complaints
springboot-server/src/main/java/in/gov/sgp/service/ComplaintSimilarityService.java
Other components
- Platform users
Connections 14
- Platform users → Role workflows: uses
artifacts/smart-governance-platform/src/App.tsx - Role workflows → React API client: configures
artifacts/smart-governance-platform/src/App.tsx - React API client → Governance endpoints: sends API requests
README.md - Governance endpoints → Workflow orchestration: delegates to
springboot-server/src/main/java/in/gov/sgp/controller/GovernanceController.java - Governance endpoints → API data contracts: uses DTOs
springboot-server/src/main/java/in/gov/sgp/controller/GovernanceController.java - Role authorization → JWT tokens: validates tokens
- Workflow orchestration → JWT tokens: issues tokens
springboot-server/src/main/java/in/gov/sgp/service/GovernanceService.java - Workflow orchestration → JPA repositories: queries and updates
springboot-server/src/main/java/in/gov/sgp/service/GovernanceService.java - Workflow orchestration → Impact scoring: calculates scores
springboot-server/src/main/java/in/gov/sgp/service/GovernanceService.java - Workflow orchestration → Related complaints: finds related reports
springboot-server/src/main/java/in/gov/sgp/service/GovernanceService.java - Workflow orchestration → Location validation: validates coordinates
springboot-server/src/main/java/in/gov/sgp/service/GovernanceService.java - JPA repositories → MySQL database: persists via JPA
README.md - Impact scoring → Complaint records: scores complaint data
springboot-server/src/main/java/in/gov/sgp/service/ImpactScoreService.java - Related complaints → Complaint records: compares reports
springboot-server/src/main/java/in/gov/sgp/service/ComplaintSimilarityService.java