{"id":19974047,"url":"https://github.com/rushhaabhhh/hyperswitch-leaderboard","last_synced_at":"2025-09-12T04:43:37.920Z","repository":{"id":259101493,"uuid":"866780196","full_name":"Rushhaabhhh/Hyperswitch-Leaderboard","owner":"Rushhaabhhh","description":"A leaderboard system that incentivizes and recognizes top external contributors by tracking and displaying their contributions. Features include real-time point assignment, customizable filtering, and user profiles, all integrated with GitHub and Airtable for seamless contribution tracking and management.","archived":false,"fork":false,"pushed_at":"2024-12-26T11:12:54.000Z","size":4414,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T09:32:17.072Z","etag":null,"topics":["airtable","bounty","github-api","hacktoberfest","hyperswitch","juspay","leaderboard","mern-project","open-source-contributions"],"latest_commit_sha":null,"homepage":"https://hyperswitch-leaderboard.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rushhaabhhh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-02T21:26:03.000Z","updated_at":"2024-12-26T11:12:58.000Z","dependencies_parsed_at":"2025-01-12T09:39:21.760Z","dependency_job_id":null,"html_url":"https://github.com/Rushhaabhhh/Hyperswitch-Leaderboard","commit_stats":null,"previous_names":["rushhaabhhh/hyperswitch-leaderboard"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rushhaabhhh%2FHyperswitch-Leaderboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rushhaabhhh%2FHyperswitch-Leaderboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rushhaabhhh%2FHyperswitch-Leaderboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rushhaabhhh%2FHyperswitch-Leaderboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rushhaabhhh","download_url":"https://codeload.github.com/Rushhaabhhh/Hyperswitch-Leaderboard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241406614,"owners_count":19958014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["airtable","bounty","github-api","hacktoberfest","hyperswitch","juspay","leaderboard","mern-project","open-source-contributions"],"created_at":"2024-11-13T03:13:44.189Z","updated_at":"2025-03-01T18:27:09.357Z","avatar_url":"https://github.com/Rushhaabhhh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hyperswitch Leaderboard System 🏆\n\n## Overview\n\nThe Hyperswitch Leaderboard System is an advanced platform designed to recognize and incentivize external contributors by tracking their GitHub contributions in real-time. This dynamic system automates contribution tracking, assigns points, and provides comprehensive insights into community engagement.\n\n## 🚀 Key Features\n\n- **Automated GitHub Contribution Tracking**\n- **Real-Time Leaderboard Updates**\n- **Customizable Contributor Filtering**\n- **Detailed User Profiles**\n- **Admin Management Dashboard**\n\n## 💻 Tech Stack\n\n- **Frontend**: React.js, Tailwind CSS\n- **Backend**: Node.js, Express.js\n- **Database**: Redis, Airtable\n- **Authentication**: GitHub OAuth\n- **Containerization**: Docker\n\n## 🗂️ Project Architecture\n\n```\nHyperswitch-Leaderboard/\n│\n├── Frontend/\n│   ├── src/\n│   │   ├── Components/\n│   │   ├── Pages/\n│   │   ├── App.jsx\n│   │   └── main.jsx\n│\n├── Backend/\n│   ├── config/\n│   │   ├── airtableConfig.js\n│   │   └── PassportConfig.js\n│   ├── Controllers/\n│   │   ├── LeaderboardController.js\n│   │   └── UserController.js\n│   ├── Routes/\n│   │   ├── LeaderboardRoute.js\n│   │   └── UserRoute.js\n│   └── index.js\n│\n└── docker-compose.yaml\n```\n\n## 🔧 Quick Setup\n\n### Prerequisites\n\n- Node.js (v14+)\n- Docker \u0026 Docker Compose\n- GitHub Personal Access Token\n- Airtable Account\n\n### Installation Steps\n\n1. Clone the repository\n```bash\ngit clone https://github.com/Rushhaabhhh/Hyperswitch-Leaderboard.git\ncd Hyperswitch-Leaderboard\n```\n\n2. Build and start containers\n```bash\ndocker-compose up --build\n```\n\n3. Run the application\n- **Frontend**: http://localhost:5173\n- **Backend**: http://localhost:5000\n\n## 🔒 Environment Configuration\n\n### Backend Environment Variables\n\nCreate a `.env` file in the Backend directory with the following variables:\n\n```env\nPORT=5000\nREDIS_URL=redis://localhost:6379\nAIRTABLE_API_KEY=your_airtable_api_key\nAIRTABLE_BASE_ID=your_airtable_base_id\nGITHUB_TOKEN=your_github_token\nGITHUB_CLIENT_ID=your_github_client_id\nGITHUB_CLIENT_SECRET=your_github_client_secret\nSESSION_SECRET=your_session_secret\n```\n\n### Frontend Environment Variables\n\nCreate a `.env` file in the Frontend directory:\n\n```env\nREACT_APP_API_BASE_URL=http://localhost:5000\nREACT_APP_GITHUB_OWNER=your_github_owner\nREACT_APP_GITHUB_REPO=your_github_repo\n```\n\n## 🌐 API Endpoints\n\n### Leaderboard Endpoints\n\n1. **Fetch Repository Data**\n   - **GET** `/leaderboard/:owner/:repo/:userType`\n   - Query Parameters: `startDate`, `endDate`, `sort`\n\n2. **Update User Points**\n   - **PATCH** `/leaderboard/points/:username`\n   - Request Body: `{ \"points\": 50 }`\n\n### User Endpoints\n\n1. **GitHub Login**\n   - **GET** `/user/github`\n\n2. **Get User Profile**\n   - **GET** `/user/profile`\n\n3. **Update User Profile**\n   - **PUT** `/user/profile`\n\n### Admin Endpoints\n\n1. **Get Admins**\n   - **GET** `/auth/get-admin`\n\n2. **Assign Admin Role**\n   - **POST** `/auth/assign-admin`\n   - Request Body: `{ \"username\": \"user123\" }`\n\n3. **Remove Admin Role**\n   - **DELETE** `/auth/remove-admin`\n   - Request Body: `{ \"username\": \"user123\" }`\n\n## 📊 Airtable Database Structure\n\n### Contributors Table\n- **GithubId**: Unique GitHub identifier\n- **Username**: Contributor username\n- **Profile Link**: GitHub profile URL\n- **Role**: User role (Admin/Contributor)\n\n### Leaderboard Table\n- **Username**: User's username\n- **UserType**: User type\n- **ContributionType**: Contribution category\n- **Points**: Awarded points\n- **Date**: Contribution date\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frushhaabhhh%2Fhyperswitch-leaderboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frushhaabhhh%2Fhyperswitch-leaderboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frushhaabhhh%2Fhyperswitch-leaderboard/lists"}