A React application that visualizes the community mood on Reddit. It fetches sentiment scores from a backend service and displays both a real-time summary and a history chart for the past week.
- Real‑time sentiment – view the overall distribution of joy, sadness, anger, fear, love and surprise in a pie chart.
- Top posts – inspect the highest scoring posts contributing to each sentiment.
- Historical trends – toggle between raw and normalized data to explore how sentiment changes over time.
- Modern stack – built with React, Vite and Tailwind CSS. Charts are rendered using Recharts.
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
The app will be available at
http://localhost:5173by default. -
Build for production:
npm run build
To preview the production build locally run:
npm run preview
This project relies on an external API for sentiment data. The API base URL is configured in src/services/sentimentService.js.
src/
├── components/ # reusable UI components
├── services/ # API calls
├── utils/ # constants and helpers
└── App.jsx # application layout
This project is open source and available under the MIT license unless noted otherwise.