uttamsah724 / leaderboard

Leaderboard collects data from GitHub and Slack to show off the work of our open source contributors

Home Page:https://contributors.ohc.network/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A simple leaderboard app built with Next.js and Tailwind CSS to list top contributors of a GitHub organization.

Getting Started

Starting the deployment server

Run the following command in the terminal:

./load-org-data.sh

Now run the deployment server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

Installing packages

To install new packages, run the following command:

pnpm add <package_name>

You can get more info about pnpm through their official docs pnpm docs

How to add a new member?

Create a new markdown file with the github user name in the contributors folder. For example, if you want to add john-doe as a contributor, create a file named john-doe.md in the contributors folder.

The file should contain the following content:

---
name: John Doe
title: Full Stack Developer
github: john-doe
twitter: john-doe
linkedin: john-doe
slack: U02TDGQQPMJ
joining_date: "09/05/2022"
role: contributor
---

** A Bio about John Doe **  
_Passionate about creating scalable and distributed systems for the power grid and interested in contributing to open
source digital public goods._ (supports markdown)

All members marked with role: core and role: operations will be will be hidden from the leaderboard section by default.You can toggle their visibility by changing filters.

You will be able to see the users profile page at http://localhost:3000/contributors/john-doe.

Customizing the app

  1. To add or remove a badge, edit the config/GraduateAttributes.ts file.

  2. To Setup the repo for a new org, update the scraper config

  3. To change the colors, fonts, or plugins edit the tailwind.config.js file.

Environment Variables

Organization Details

  • NEXT_PUBLIC_ORG_NAME
    • Will be displayed in the navbar.
  • NEXT_PUBLIC_ORG_INFO
    • (Optional) Will be displayed in the "What do we do?" section.
  • NEXT_PUBLIC_ORG_LOGO
    • Will be displayed in the footer.

SEO details

  • NEXT_PUBLIC_META_TITLE
  • NEXT_PUBLIC_META_IMG
  • NEXT_PUBLIC_META_DESCRIPTION
  • NEXT_PUBLIC_META_URL

Page Details

  • NEXT_PUBLIC_PAGE_TITLE
    • Will be displayed in page title.
  • NEXT_PUBLIC_CONTRIBUTORS_INFO
    • (Optional) Will be displayed next to "Our Contributors" section. You can use it to display a note about your contributors.

About

Leaderboard collects data from GitHub and Slack to show off the work of our open source contributors

https://contributors.ohc.network/

License:MIT License


Languages

Language:TypeScript 82.0%Language:Python 9.6%Language:JavaScript 6.8%Language:CSS 1.3%Language:Shell 0.3%