Skip to content

Instantly share code, notes, and snippets.

@DanielEFrampton
Last active March 22, 2020 22:26
Show Gist options
  • Save DanielEFrampton/9c9e82676df1d82544bfe2e4e10076e4 to your computer and use it in GitHub Desktop.
Save DanielEFrampton/9c9e82676df1d82544bfe2e4e10076e4 to your computer and use it in GitHub Desktop.
What the Flippin' Heck Is Algolia?

What the Flippin' Heck Is Algolia?

While working on a new feature for Dev.to involving the existing "Reading List" component, my team ran into a roadblock. Namely, having no idea whatsoever where the data was originating. The Rails controller action corresponding with the related view did not make an ActiveRecord query; so where are the articles on the user's reading lists being pulled from? What we did find in the controller was a reference to Algolia, but the Algolia class does not reside in the project itself but in an external library.

The Dev.to docs mention Algolia but are less than helpful on the topic:

Algolia is a third party service that powers the search. When working with the API, you will likely need to utilize Algolia. You will need to sign up for a free-tier account, retrieve the keys, and provide those keys to the Rails application.

What "the search" is and what "the API" might be is left for us to discover. A page farther down the docs

The front-end focused members of our team identified that the readingList component was making a fetch request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment