BroderickHigby / Influencer-tracking

Find the best influencers online to promote your small business or startup
http://sapie.space
5 stars 0 forks source link

Show influencers in website from local Elasticsearch database #10

Closed phara23 closed 6 years ago

phara23 commented 6 years ago

We would like the influencers displayed in the website to correspond to actual influencers in our local Elasticsearch database that match the given query text entered on the site.

We can do this by altering BigSearchBox.js and adding some code to searchHandler handleKeyPress that updated resources.influencer.results to correspond to actual influencers in our database. We can invoke our python backend within a flask REST api that can be invoked from JS as in the following example: https://stackoverflow.com/questions/32288722/call-python-function-from-js

phara23 commented 6 years ago

Right now we have the users that match a given query being returned to our website but I am struggling to display this list in the current react-rebind framework we are using in Search.js. In seems react-rebind has limited documentation so figuring out how to plug what we want into it is proving hard. Could it be worth switching to another framework for dynamically binding data to our page that has more readily available documentation?

BroderickHigby commented 6 years ago

This issue is definitely closed. We should work on closing issues in a more timely manner (my fault).