- Read source file to find git repositories.
- Using github api to fetch repository information, such like description, starts, issues.
- Make simple goroutine worker pool to fetch mass repositories.
- Store above data to DB.
- Set up cron job to update information.
- provide api or other to show those data
- create ./config/config.yaml, and add following fields
mode: DEV
db:
username: DB_USERNAME
password: DB_PASSWORD
database: DB_NAME
http:
workernums: 10
reqtimeout: 800
github_header_accept: "application/vnd.github.v3+json"
github_header_authorization: GITHUB_TOKEN
source:
awesome-go: "https://raw.githubusercontent.com/avelino/awesome-go/master/README.md"