Skip to content

Instantly share code, notes, and snippets.

@psudoanon
psudoanon / 0 - Gitcoin SourceCred Plugin Instructions.md
Last active September 9, 2020 22:32
Gitcoin SourceCred Plugin Instructions

Gitcoin SourceCred Plugin Instructions

  • Create a sourcecred directory within the root Gitcoin 'web' project
  • Create the following config files within the sourcecred directory (sample JSON files attached in gist):
  1. config.json (replacing the values with the ones specific to your environment):
{
    "pgDatabaseUrl": "postgressql://postgres:postgres@localhost:5432/postgres",
    "gitcoinHost": "localhost:8080",
@psudoanon
psudoanon / SourceCred Gitcoin Integration Milestone 1.md
Last active June 8, 2020 15:18
SourceCred Gitcoin Integration Milestone 1

SourceCred Gitcoin Integration Milestone 1

Purpose

  • Implement a plugin within the main SourceCred repository that will build a graph from the Gitcoin community allowing us to gage the relative value of community member contributions
  • Implement a management command which can be run from the Gitcoin repository (manually & through Docker) which yields Cred scores generated from the Gitcoin database

Overview

SourceCred is an open-source project which applies a modified version of PageRank onto a community contribution graph. Nodes in the graph are meant to be contributors as well as contributions which add value to the relevant community. These nodes are linked together via bi-directional edges which allow for the flow of "Cred" (generated by nodes).

SourceCred Gitcoin Integration (Milestone 1)

Purpose:

Implement a management command which generates a SourceCred graph and Cred scores for Gitcoin users, viewable and configurable through the SourceCred web application.

Scope:

We will use a subset of the Gitcoin application to generate the SourceCred graph, the Gitcoin Town Square is a reasonably isolated place to start and will provide a basis for Milestone 2 going forward. Users, Posts & Comments will initially be parsed into nodes with the following relational edges: