I followed these Firebase/Algolia docs https://www.algolia.com/doc/guides/integrations/firebase-algolia/. I did a bit of tweaking as some of the initial setup instructions are outdated but I got it to work. I put all of the code from that page inside my app.js file. Inside terminal I ran ‘npm start’ and and when I checked my Algolia Indices console my Firebase data successfully got indexed. There are 2 problems though.
After running ‘npm start’ I got these print statements in this order:
Firebase<>Algolia reimport done
Firebase<>Algolia object saved
Firebase<>Algolia import done
//terminal just sits idle from this point on
As I said the the object was indexed (I only had 1 object inside Firebase). The problem is after the final “… import done” statement, nothing happens. Terminal just sits in a state that seems as if it’s waiting for more data to be sent or more instructions to be given, it doesn’t do anything. I have to press CNTRL+C to stop it. What’s it waiting for and why doesn’t it exit on its own once it indexes everything from FB?