Skip to content
This repository has been archived by the owner on Jul 9, 2019. It is now read-only.

NgGithubContribCalendar/server

Repository files navigation

Parse server for https://github.com/NgGithubContribCalendar

Coverage Status Greenkeeper badge Build Status License Dependencies Dev Dependencies

Deploy to Heroku

Configuration

All environment variables are optional

  • ALLOWED_ORIGINS: A comma-separated list of domain names allowed to use the proxy. Omit to allow all origins.
  • ALLOWED_USERS: A comma-separated list of GitHub usernames allowed to be retrieved. Omit to allow all usernames.
  • REDISCLOUD_URL: A Redis connection string for caching. Omit to disable cache. This is set automatically if you deploy to Heroku using the button above.

Usage

Assuming your app is located at https://example.com and your GitHub username is GithubStar:

  • Get the latest contributions: GET https://example.com/fetch/GithubStar
  • Get the contributions from the year leading up to the 1st of November, 2015: GET https://example.com/fetch/GithubStar?to=2015-11-01