Name: search-g0v
Owner: g0v
Description: ???? - ???? g0v ??????
Created: 2016-06-20 09:20:12.0
Updated: 2018-05-17 22:34:04.0
Pushed: 2016-10-08 06:53:54.0
Size: 33962
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
?? g0v ???????????????????????????? hackpad ???????
????
Jim ?? github README, hackfoldr ? component ???? backup-hackpad ??????? repo ?????????????????????????????????? repo files????? build.py ???
[hackfoldr]
code repo: https://github.com/jmehsieh/hackfoldr-backup
data repo: https://github.com/jmehsieh/hackfoldr-backup-g0v
[repo-info]
code repo: https://github.com/jmehsieh/generate-g0v-repo-info
data repo: https://github.com/jmehsieh/g0v-repo-info
Ronnywang ? elasticsearch ??????????? whoosh ? api ??
?? API ??? https://api.search.g0v.io/query.php?q=
===
????????
?????
# ??????
pip3 install -r requirements.txt
# ?? GitHub API ???? ( ?? g0v-repos ??)
#mac ?? .bash_profile ??? source .bash_profile
export GITHUB_USER_NAME=<your_github_username>
export GITHUB_TOKEN=<your_github_token>
# ?? ?????? ( hackpad_backup_g0v, build ?????? )
git submodule update --init
# ????
python3 build.py
# ?? command line ??
python3 search.py
# ?? web server (??????)
python3 web.py
????????????: http://www.jeyzhang.com/realization-of-full-chinese-text-search-using-whoosh-and-jieba.html
$ docker-compose run app python3 build.py # build index
$ docker-compose up # start the api server, go to http://localhost:5000/search?keyword=test to see result
Join by yourself: http://join.g0v.today/