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

ember-learn/ember-help-wanted-webhook

Repository files navigation

ember-help-wanted-webhook

TravisCI Build Status

Used to populate our backend (currently CouchDB) for the Ember Help Wanted app

Couch setup

  • The easiest way to setup couch is through docker, docker run --name help-wanted-couchdb -p 5984:5984 -d couchdb
  • For alternate ways, refer to the official installation docs
  • Run curl -X PUT http://127.0.0.1:5984/help-wanted to create the db
  • To populate the store run npm run build && ./build/populate.js org/repoName

Development

  • Use ngrok to create a tunnel to your machine that github can reach
  • In your repo, go to Settings -> Webhooks & services -> Add webhook
    • Payload URL: YourNGrokUrl/issue-handler
    • Secret: oursecrethere
  • To inspect payload visit http://127.0.0.1:4000
  • To inspect logs run ./node_modules/.bin/bunyan logs/events.log

References

https://github.com/rvagg/github-webhook-handler