g0v/search-g0v

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

Homepage:

Size: 33962

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

search-g0v

?? g0v ???????????????????????????? hackpad ???????

????

2016/10 ???

===

??

????????

build.py
search.py
api.py
web.py

?????


Installation
# ??????
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

Development
$ 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
Change Log
  1. ??????? jieba ? https://github.com/g0v-data/hackpad-backup-g0v ??? html ??????????
  2. 2016/06/23 ?? api.py ?? web api
  3. 2016/06/23 ?? ?? github api ?? g0v github ???? README.md
  4. 2016/07/21 ?? aswesome-g0v ???? README.md
  5. 2016/07/23 ?? hackfoldr ????
  6. 2016/07/23 ???? search-g0v
  7. 2016/07/24 ???? web.py
  8. 2016/10 ??
Contributors
g0v Slack channel: #search

Join by yourself: http://join.g0v.today/


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.