Pointers on enabling algolia search in ghost


I am looking to enable search based on algolia.
I have relied on information from these two sources

I understand the part about setting up algolia and the the intial indexing and real time indexing.

But, what I am not sure is the best way to enable the search widget in ghost. Is there an example theme that I could refer that uses algolia search?