This is a toy example to experiment with the Algolia framework.
The different steps are:
- Download the latest arXiv papers
- Retrieve their number of twitter mentions
- Save it to disk
- Create an Algolia index with it
- Serve it in a simple UI/UX interface
First, make sure to update your credentials.
$ cp twitter_credentials.json.template twitter_credentials.json
$ vim twitter_credentials.json
...
$ cp algolia_credentials.json.template algolia_credentials.json
$ vim algolia_credentials.json
...
Create the database.json
file.
$ pipenv install
$ pipenv run python toolbox.py build_database --twitter_credentials twitter_credentials.json --database_json database.json --arxiv_count 500
$ pipenv run python toolbox.py create_algolia_index --algolia_credentials algolia_credentials.json --database_json database.json
$ vue ui