Project to add Rubygem-like webhooks to NPM.
- Redis
The application.yml
file must be configured as follows (sample here):
SECRET_TOKEN
: The application'sconfig.secret_token
. This is for Rails signed cookies.NPM_DATABASE_URL
: The url to access NPM's CouchDB.REDIS_HOST
andREDIS_PORT
: The host and port of the Redis server.GITHUB_KEY
andGITHUB_SECRET
: The GitHub application credentials that are used for OAuth.
rake npm_monitor:start
: This daemon is responsible for monitoring the NPM database for package changes and will schedule the webhooks in Resque.rake requeue
: Resque workers to send out the webhooks.
The API documentation to schedule webhooks is currently available in the homepage view.