Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Latest commit

 

History

History
30 lines (28 loc) · 1.89 KB

README.md

File metadata and controls

30 lines (28 loc) · 1.89 KB

Client for Reddit

When I first started this project, the official desktop Reddit client looked dated, many image and video hosting sites were not supported, you could not infinitely scroll, and it lacked fullsize images like in the mobile experience.

Problems I solved:

  • Authenticating through OAuth2
  • Retrieving data from Reddit with JSON and the Reddit API
  • Displaying different media formats from different sites
  • Linking the client and user to Reddit to upvote and downvote posts.

Architecture

Client

Key Libraries

Server

Needed a server to circumvent CORS

Key library

Installation

  1. Clone client and server
  2. Get a Reddit client ID and client secret from Reddit by clicking "create an app" near the bottom of the page and choosing web app. The client ID is immediatly after "web app". To get the secret click "edit" and secret is the first entry.
  3. In the downloaded reddit_client repository open src/keys.js and change REDDIT_CLIENT_ID to the client ID and REDDIT_CLIENT_SECRET to the secret
  4. in the reddit_oauth_proxy_server directory run npm install
  5. in the reddit_client directory run npm install

Running

  1. in the reddit_oauth_proxy_server directory run npm start
  2. in the reddit_client directory run npm start