Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

baya/Gstar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

66 Commits

Repository files navigation

Gstar

gstar, 帮助我们搜索在github上star过的项目

安装

  1. git clone https://github.com/baya/Gstar.git

  2. cd Gstar/ground

  3. bundle install

  4. rake db:migrate

  5. cp config/github.example.yml config/github.yml

    在config/github.yml里有三个配置,其中login为必填项,access_token和password选一个填写即可,login和password是你用来登录github的用户名和密码,access_token可以通过下面的步骤得到,

    • 点击Account Settings,进入帐号设置页面
    • 选择左侧栏的Applications导航,可以看到Personal Access Tokens这个设置,点击右上角的Create new token生成新的access_token即可。 配置完以后,运行下面的rake任务,
  6. rake maintain:pull_stars_from_github #将你star过的项目从github拉到本地数据库

  7. whenever --update # 启动定时任务,每分钟检查一次你是否有新的star项目

  8. rackup -p 9292

  9. 使用你喜爱的浏览器访问 http://localhost:9292

注意操作3到8都是在Gstar/ground目录下进行的。

功能特点

1.准确快速的搜索

github自带的搜星功能不是特别好用,比如说我想找出我收藏的(github的标星功能对我来说就是收藏)与markdown有关的项目,使用github自带的搜星功能只能找到一个叫miclle/Markdown-Editor的项目,因为github是通过项目的名字进行搜索,这导致很多与markdwon有关的项目被忽略了,但是使用Gstar搜索markdwon能找到11个与markdown有关的项目,因为Gstar对项目名和项目描述都进行搜索,这样比github更准确些。

github的搜星:

gstar的搜星:

2.可以修改项目的描述(description),实现类似于打标签的功能

比如说我给karmi/tire这个项目的描述加上"搜索",那么我就可以通过搜索"搜索"找到tire这个项目了。

3.自动更新starred projects

Gstar自带一个定时任务,每一分钟会去github那检查是否有新的stars,如果有就会拉到本地,建立索引,方便你以后搜索使用。

About

Help searching your github starred projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /