Skip to content
This repository has been archived by the owner on Jun 1, 2020. It is now read-only.

etaminstudio/algoliasearch-nationbuilder

Repository files navigation

algoliasearch-nationbuilder

Sync NationBuilder People data with Algolia

Requirements

This project works as a proxy between NationBuilder webhooks and Algolia API, so you don't need a database.

Setup

Copy .env.example to .env and set your Algolia and NationBuilder credentials.

Install the dependencies

bundle install

Start the server locally

foreman start

Deployment

This project can be easily deployed to Heroku, just set the variables from .env as Config Variables.

Then, configure your NationBuilder webhooks so they point to the following paths:

  • Person created: /people/created
  • Person changed: /people/changed
  • Person merged: /people/merged
  • Person deleted: /people/deleted

Initial import

To import all your People to your Algolia index using NationBuilder API, run:

rake import_people

You can also import your People data from a CSV file:

rake import_csv[your_file.csv]

Releases

No releases published

Packages

No packages published