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

Latest commit

 

History

History
67 lines (44 loc) · 1.83 KB

CONTRIBUTING.md

File metadata and controls

67 lines (44 loc) · 1.83 KB

Contributing

Local Setup

Prerequisites

You will need:

Installation

First, clone the project from GitHub:

  • Using HTTPS:

    git clone https://github.com/TimJentzsch/tor-user-stats.git
    
  • Using SSH:

    git clone git@github.com:TimJentzsch/tor-user-stats.git
    

Don't forget to navigate to the folder:

cd tor-user-stats

Now you can install the dependencies:

yarn install

Configuration

The project needs to interact with the reddit API. Therefore, you have to create a reddit application.

  1. Navigate to the reddit app settings.
  2. Make sure that you have read the API usage guidelines.
  3. Create a new application. Give it a meaningful name and choose "installed app" as type.
  4. You will need the ID of the app that you have created. It will be displayed right under "installed app".
  5. Read and fill out the API registration form.
  6. In the project files, navigate to config/ and copy the contents of reddit.example.config.json to a new file named reddit.config.json.
  7. Insert the above mentioned client ID and your user name in the appropriate properties.

Usage

You should now be able to start the app via yarn start. This will run the analysis for the user specified in the reddit.config.json.

To run the analysis for a specific user, use:

yarn start <username>

You can also run the web-view locally by using

yarn serve