This is a source code of API and Ruby workers, described in article Comparing the performance of RoR and Go applications in background processing.
The application needs Postgres 9.6.3 and Redis to run. Also, it requires postgresql-dev package installed.
- Get rvm
- Install ruby 2.5.1
- Run bundle
- Create and fill in the .env.development file. The necessary keys are listed in .env
- Run rails:db:setup
- Run rails:db:populate_survey_results to generate samples
- Run rails server
- Run sidekiq in a separate terminal tab
- Setup go worker
- (Optional) setup Web-ui