tmszcncl / report_manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to launch this app?

  • git clone

  • bundle install

  • rails db:migrate

  • rails db:seed

  • rails s

Two important urls

  • localhost:3000 - form for submitting new reports

  • localhost:3000/admin - simple admin panel for reading/managing reports

Database seeding

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.

Search Service Object

File app/services/search_reports.rb contains SearchReports class responsible for searching, returning and marking Reports as read.

About


Languages

Language:Ruby 79.2%Language:HTML 14.2%Language:CSS 3.4%Language:JavaScript 2.4%Language:CoffeeScript 0.8%