Awesome
algoliasearch-nationbuilder
Sync NationBuilder People data with Algolia
Requirements
- an Algolia account
- a NationBuilder nation
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]