Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/g0v/issue_aggregator
g0v issues aggregator
https://github.com/g0v/issue_aggregator
Last synced: 18 days ago
JSON representation
g0v issues aggregator
- Host: GitHub
- URL: https://github.com/g0v/issue_aggregator
- Owner: g0v
- License: mit
- Created: 2016-06-21T05:17:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-30T15:33:21.000Z (about 8 years ago)
- Last Synced: 2024-07-31T22:37:50.120Z (5 months ago)
- Language: Python
- Size: 30.3 KB
- Stars: 4
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-g0v - issue_aggregator - g0v issue 搜尋器 (Infrastructure / g0v 基礎建設)
README
# issue_aggregator
http://g0vissues.jmehsieh.com
搜尋 g0v repo issues by language & labels### 共筆
* [g0v 基礎建設 hackfoldr](http://beta.hackfoldr.org/g0v-infras)
* [g0v 基礎建設 issue aggregator](https://g0v.hackpad.com/projecthub-redux-9U6DLtdZc48#:h=issues-aggregator)### Hosting
* 前端放在 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`##### 建置 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
```##### run flask app
```
$ export FLASK_APP=app.py
$ export FLASK_DEBUG=1
$ flask run
```##### api usage
* 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