Skip to content
项目

关于

基于 Gorse 的 GitHub 仓库推荐系统,可提供个性化推荐和相似仓库。

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

GitRec

test Website Discord Twitter Follow

GitRec is the missing recommender system for GitHub repositories based on Gorse.

Browser Extensions

Chrome Web Store Chrome Web Store Chrome Web Store Mozilla Add-on Mozilla Add-on Mozilla Add-on

The browser extension integrates GitHub with GitRec.

  1. Recommends repositories to GitHub users based on starred repositories.
  2. Finds related repositories for popular repositories.

Quick Start

  • First, clone the repository and enter the folder.
git clone https://github.com/zhenghaoz/gitrec.git
cd gitrec
  • Create a .env file.
# Gorse secrets
GORSE_DASHBOARD_USER_NAME=********
GORSE_DASHBOARD_PASSWORD=********
GORSE_API_KEY=********

# GitHub secrets
GITHUB_ACCESS_TOKEN=********
GITHUB_OAUTH_CLIENT_ID=********
GITHUB_OAUTH_CLIENT_SECRET=********

# GitRec secrets
SECRET_KEY=********

# S3 secrets for backup
S3_ACCESS_KEY=********
S3_SECRET_KEY=********
S3_BUCKET_LOCATION=US
S3_HOST_BASE=s3.amazonaws.com
S3_HOST_BUCKET=%(bucket)s.s3.amazonaws.com

# Open AI
OPENAI_API_BASE=https://api.openai.com/v1
OPENAI_API_KEY=********
OPENAI_MODEL=gpt-6-luna
  • Generate a personal access token from GitHub and fill the GITHUB_ACCESS_TOKEN variable in the .env file.
GITHUB_ACCESS_TOKEN=xxxxxxxx # personal access token
  • Create a GitHub OAuth app. The authorization callback URL should be http://127.0.0.1:5000/login/github/authorized. Then, fill following variables in the .env file.
GITHUB_OAUTH_CLIENT_ID=xxxxxxxx     # client ID
GITHUB_OAUTH_CLIENT_SECRET=xxxxxxxx # client secret
SECRET_KEY=xxxxxxxx                 # random string
  • Start the cluster using Docker Compose.
docker-compose up -d
  • Download the SQL file github.sql and import it to the MySQL instance.
mysql -h 127.0.0.1 -u gorse -pgorse_pass gorse < github.sql
  • Restart the master node to apply imported data.
docker-compose restart
  • Play with GitRec:
Entry Link
GitRec http://127.0.0.1:5000/
Gorse Dashboard http://127.0.0.1:8088/

探索相关项目

加载中…