The Reddit Visualizer application will allow you to explore connections between your favorite subreddits and see real world data gathered from Reddit in action!
See it live on heroku.
- Visit the Reddit Visualizer
- Search for your desired subreddit using the search bar or start exploring from the default subreddit (AskReddit).
- Click on subreddit nodes to expand that subreddit to see its connections.
- Line weight represents connection strength
- Node size represents subscribed members
- Explanation of node colors is in legend in the bottom left-hand corner
- To find a path between two subreddits type a starting subreddit into the first search field and a destination subreddit into the second input, or simply search from the second input and use the current subreddit as the starting point.
- Use the "Expand subreddits" button to expand all nodes currently visible that have connections.
- Clone this repository to your local machine.
- View our custom Reddit API Gem for instructions on how to set up your application for data gathering.
- Run
bundle install
from your terminal. - Create a database by running
rails db:create
in your terminal. - Run migrations with
rails db:migrate
from your terminal. - Gather subreddits to start building connections by running
rake reddit:gather_subreddits
in your terminal. - Start building subreddit connections by running
rake reddit:form_connections
in your terminal. - Run a server from your terminal using
rails s
and visit localhost:3000 in your browser.
- Note: If you haven't allowed sufficient time for data collection you may not have much data to view initially.
- D3.js for interactive, physics-driven data visualization
- Reddit API for all the data collection
- Rails and Postgres for API interaction and data storage
- Rspec for back end unit testing