Notifies other apps whenever EveryPolitician data changes, in style of GitHub's webhooks
Ruby HTML Shell JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db/migrations
public
scripts
spec
views
.env.example
.gitignore
.rubocop.yml
.rubocop_todo.yml
.travis.yml
Gemfile
Gemfile.lock
Procfile
README.md
Rakefile
Vagrantfile
app.rb
config.ru

README.md

EveryPolitician Webhook Manager

Build Status

Listens for events from GitHub and 3rd party apps using EveryPolitician data and passes them on as webhooks in the same manner as GitHub's webhooks, featuring:

  • JSON payload containing countries_json_url and pull_request_url
  • signed (with the secret you provided) header: X-EveryPolitician-Signature

This is superuseful if you want your app to be alerted whenever the EveryPolitician data changes. The EveryPolitician Bot has described how to use this service in more detail.

We're running this service for you at https://everypolitician-app-manager.herokuapp.com/

Developers only: Installation

Get the code from GitHub

git clone https://github.com/everypolitician/webhook-manager
cd webhook-manager

Configure the environment by copying .env.example and following the instructions inside to configure the app.

cp .env.example .env
vi .env

Then use vagrant to build a VM with all the dependencies installed:

vagrant up

Usage

Log in to the vagrant VM and start the app server and worker with foreman:

vagrant ssh
foreman start

Then visit http://localhost:5000 to view the app.

To run the tests use the following:

vagrant ssh
bundle exec rake test