Code Monkey home page Code Monkey logo

leaderboard's Introduction

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.

leaderboard's People

Contributors

ashesh3 avatar ashrafmd-1 avatar ashutosh0602 avatar ayush398 avatar bodhish avatar dependabot[bot] avatar dgparmar14 avatar gigincg avatar gokulramghv avatar harshdoiphode avatar khavinshankar avatar kirtanchandak avatar kshitijv256 avatar kumar11jr avatar ladityagogoi avatar mathew-alex avatar naman114 avatar pranshu1902 avatar rabilrbl avatar rash-27 avatar re-dei avatar ritesh-aggarwal avatar rithviknishad avatar sainak avatar samuel-aktar-laskar avatar skks1212 avatar sriharsh05 avatar udaysagar-git avatar vigneshhari avatar vinutv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.