http://g0vissues.jmehsieh.com
搜尋 g0v repo issues by language & labels
- 前端放在 gh-pages branch
- 主機放在 aws (1 yr free tier)
- dns: http://g0vissues.jmehsieh.com
- 想辦法取得 g0v repo list: url_list.json
- 根據 url_list.json 下載所有 repos.json, issues.json, labels.json
- 將 json files 轉成 postgresql (jsonb format)
- 啟動 nginx + gunicorn + flask app
- 安裝 PostreSQL, Python3, Virtualenv
$ createdb your_issue_aggregator_db
$ git clone https://github.com/JmeHsieh/issue_aggregator.git
$ cd issue_aggregator
$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ cp config_template.json config.json
$ vim config.json
{
user: 連線 db 的 user,
db: postgresql database name,
token: github personal auth token
}
$ cp your_url_list_json_file data/
$ python download_jsons.py
$ python j2jb.py
$ export FLASK_APP=app.py
$ export FLASK_DEBUG=1
$ flask run
- localhost:5000/api/labels
- localhost:5000/api/repos
- localhost:5000/api/repos?ids=xxx,ooo
- localhost:5000/api/issues
- localhost:5000/api/issues?language=html
- localhost:5000/api/issues?language=html&labels=bug,enhancement