-
git clone
-
bundle install
-
rails db:migrate
-
rails db:seed
-
rails s
-
localhost:3000 - form for submitting new reports
-
localhost:3000/admin - simple admin panel for reading/managing reports
rails db:seed is set to delete all existing Reports and create 123 new valid and unread Reports. Every Report should look pretty authentic - Faker Gem is used for creating descriptions and emails.
File app/services/search_reports.rb contains SearchReports class responsible for searching, returning and marking Reports as read.