Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A comprehensive full-stack application for analyzing Reddit data using AI-powered insights, interactive visualizations, and real-time analytics.

Notifications You must be signed in to change notification settings

SarthakB11/reddit-dashboard

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

56 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Reddit Dashboard - Social Media Analysis Platform

🌐 Live Demo

πŸš€ Overview

A comprehensive full-stack application for analyzing Reddit data using AI-powered insights, interactive visualizations, and real-time analytics. The platform provides deep insights into social media trends, sentiment analysis, and user engagement patterns.

πŸ› οΈ Demo Video

https://drive.google.com/file/d/1H48_XLk1vdFovn049T3iJLWT9CJ7S9CJ/view?usp=drive_link

✨ Features

πŸ€– AI-Powered Analytics

  • Real-time sentiment analysis
  • Topic modeling and trend detection
  • Engagement pattern analysis
  • Content quality assessment
  • AI-driven recommendations

πŸ“Š Interactive Visualizations

  • Time series analysis
  • Network graphs
  • Heat maps
  • Word clouds
  • Interactive charts

🎨 Modern UI/UX

  • Responsive Material UI design
  • Dark/Light theme support
  • Real-time updates
  • Interactive filters
  • Cross-platform compatibility

πŸš€ Screesnhots

Screenshot from 2025-03-05 00-48-49 Screenshot from 2025-03-05 00-49-12 Screenshot from 2025-03-05 00-49-46 Screenshot from 2025-03-05 00-52-31 Screenshot from 2025-03-05 00-52-57 Screenshot from 2025-03-05 00-53-17 Screenshot from 2025-03-05 00-53-40 Screenshot from 2025-03-05 00-54-12 Screenshot from 2025-03-05 00-54-30 Screenshot from 2025-03-05 00-59-20 Screenshot from 2025-03-05 01-01-24

πŸ› οΈ Tech Stack

Frontend

  • Next.js 14
  • TypeScript
  • Material-UI (MUI)
  • React Query
  • Plotly.js
  • React Force Graph

Backend

  • Python 3.12
  • Flask
  • DuckDB
  • NLTK
  • scikit-learn
  • Google Gemini AI
  • Flask-CORS

DevOps & Deployment

  • Vercel (Frontend)
  • Fly.io (Backend)
  • Docker
  • GitHub Actions

πŸ—οΈ Project Structure

/
β”œβ”€β”€ backend/                # Flask backend service
β”‚   β”œβ”€β”€ app.py             # Main application file
β”‚   β”œβ”€β”€ data/              # Data storage
β”‚   └── requirements.txt   # Python dependencies
β”œβ”€β”€ social-media-dashboard/ # Next.js frontend
β”‚   β”œβ”€β”€ src/               # Source code
β”‚   └── public/            # Static assets
β”œβ”€β”€ tests/                 # Integration & unit tests
└── README.md             # Main documentation

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • Python 3.12+
  • Docker (optional)

Frontend Setup

cd social-media-dashboard
npm install --legacy-peer-deps
npm run dev

Backend Setup

cd backend
python -m venv venv
source venv/bin/activate  # or `venv\Scripts\activate` on Windows
pip install -r requirements.txt
python app.py

Environment Variables

Create .env.local for frontend:

NEXT_PUBLIC_API_URL=http://localhost:5000

Create .env for backend:

GEMINI_API_KEY=your_api_key_here

πŸ“š Documentation

API Endpoints

  • /api/health - Health check
  • /api/stats - Basic statistics
  • /api/sentiment - Sentiment analysis
  • /api/network - Network analysis
  • /api/topics - Topic modeling
  • /api/timeseries - Time series data
  • /api/ai/insights - AI-powered insights

Features Documentation

πŸš€ Deployment

Frontend (Vercel)

cd social-media-dashboard
vercel deploy

Backend (Fly.io)

cd backend
fly deploy

πŸ§ͺ Testing

# Run frontend tests
cd social-media-dashboard
npm test

# Run backend tests
cd backend
pytest

# Run integration tests
cd tests
pytest

πŸ”’ Security Features

  • CORS configuration
  • Rate limiting
  • Input validation
  • Error handling
  • API key protection

🀝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“ License

This project is licensed under the MIT License.

πŸ‘₯ Authors

  • Sarthak Bhardwaj

πŸ™ Acknowledgments

  • Material-UI for the component library
  • Flask for the backend framework
  • Next.js for the frontend framework
  • Vercel and Fly.io for hosting

About

A comprehensive full-stack application for analyzing Reddit data using AI-powered insights, interactive visualizations, and real-time analytics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 60.6%
  • Python 38.6%
  • Other 0.8%