Rails survey calculator.

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.

Steps to run

  1. Get rvm
  2. Install ruby 2.5.1
  3. Run bundle
  4. Create and fill in the .env.development file. The necessary keys are listed in .env
  5. Run rails:db:setup
  6. Run rails:db:populate_survey_results to generate samples
  7. Run rails server
  8. Run sidekiq in a separate terminal tab
  9. Setup go worker
  10. (Optional) setup Web-ui