This consumes the Twitter streaming API, processing and feeding the Redis instance for the rest of Emojitracker.
-
Make sure you have Ruby 2.7.3 installed. (This repository is configured with a VSCode devcontainer to make this easy.)
-
Get the repository and basic dependencies going:
bundle install --without=production -
Copy
.env-sampleto.envand configure required variables. -
Make sure you have Redis installed and running (if you are using the devcontainer, an instance is provided). The rules in
lib/config.rbcurrently dictate the order a redis server instance is looked for. -
Run all processes via
foreman startorforego startorheroku start(depending on which you have installed).
Be sure to note that while the processing power is fairly managable, the feeder component of emojitrack requires on it's own about 1MB/s of downstream bandwith, and ~250KB/s of upstream. You can use the MAX_TERMS environment variable to process less emoji chars if you don't have the bandwidth where you are.
Note, DO NOT run the feeder process with REDIS_URL configured to the production server, ever.