Get your latest contributions as microservice
Heavily inspired by sindresorhus/gh-latest-repos
With now
or
$ now gh-latest-contribs --env NODE_ENV=production --env GITHUB_TOKEN=xxx --env GITHUB_USERNAME=xxx --env ACCESS_ALLOW_ORIGIN=xxx --env MAX_COUNT=8
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_COUNT
- Amount of contributions you want to fetch, (defaults to 5).
MIT © alonalon