How surfwithsb/product-review-dashboard works
This is a product-review sentiment and summary dashboard. Users submit review text through the frontend; the backend analyzes each review with Groq, saves the resulting review data, and serves a summary for dashboard visualization. The graph preserves the README’s documented upload, analysis, persistence, summary, and chart capabilities. Frontend source files were not present in the supplied tree, so those components use the available frontend directory path; their internal wiring is not asserted. The backend call relationships are supported by the excerpts.
Main entry points: ReviewService.java Review Service · ReviewController.java Review Controller · ReviewRepository.java Review Repository · frontend Summary Dashboard
Components 10
Review Dashboard
- Review Upload
frontend - Summary Dashboard
frontend - Insight Charts
frontend
REST API
- Review Controller
backend/src/main/java/com/cimba/backend/controller/ReviewController.java
Review Analysis
- Review Service
backend/src/main/java/com/cimba/backend/service/ReviewService.java
Review Persistence
- Review Repository
backend/src/main/java/com/cimba/backend/repository/ReviewRepository.java - Review Entity
backend/src/main/java/com/cimba/backend/model/Review.java
Other components
- User
- Groq LLM
- PostgreSQL
Connections 11
- User → Review Upload: submits reviews
README.md - Review Upload → Review Controller: uploads text
README.md - Summary Dashboard → Review Controller: fetches summary
README.md - Review Controller → Review Service: delegates upload
backend/src/main/java/com/cimba/backend/controller/ReviewController.java - Review Controller → Review Service: requests summary
backend/src/main/java/com/cimba/backend/controller/ReviewController.java - Review Service → Groq LLM: analyzes review
backend/src/main/java/com/cimba/backend/service/ReviewService.java - Review Service → Review Repository: saves review
backend/src/main/java/com/cimba/backend/service/ReviewService.java - Review Service → Review Repository: loads reviews
backend/src/main/java/com/cimba/backend/service/ReviewService.java - Review Repository → Review Entity: persists entity
backend/src/main/java/com/cimba/backend/repository/ReviewRepository.java - Review Repository → PostgreSQL: stores reviews
README.md - Summary Dashboard → Insight Charts: visualizes insights
README.md