popular-repos: Get the most popular public repositories from a user.
It returns the most popular repositories (sorted by startgazers) of a user along with some metadata. The result is cached for a day.
or
$ now abranhe/popular-repos -e NODE_ENV=production -e GITHUB_TOKEN=xxx -e GITHUB_USERNAME=xxx -e ACCESS_ALLOW_ORIGIN=xxx -e MAX_REPOS=xxx -e CACHE_MAX_AGE=xxx
Deploy to your hosting provider, set the below environment variables, and start it with npm start
.
Define the following environment variables:
GITHUB_TOKEN
- Personal access token.GITHUB_USERNAME
- The username you like to get repos from.ACCESS_ALLOW_ORIGIN
- The URL of your website or*
if you want to allow any origin (not recommended), for theAccess-Control-Allow-Origin
header.MAX_REPOS
- The number of repos returned. Optional. Defaults to 8.CACHE_MAX_AGE
- The maximum age for client cache-control in seconds. Optional. Defaults to 300 (5 minutes).
it wouldn't be possible without gh-latest-repos👏
- gh-latest-repos: Microservice to get the latest public GitHub repos from a user.
Carlos Abraham |
MIT License © Carlos Abraham