SoftServeUniversity/yunakquiz — pull request #29 by Flur (2014-11-08 10:36:36+00:00)
Title: Guest search added 

# Guest Search

Created guest search part.
+ Chekout Develop branch ``` git checkout Develop ```
+ And then to [Guest Search](http://localhost:8000/#/guest-search) to checkout working version

## Back-end part

Created module ``` SearchQuizzes ``` in folder [yunakquiz/source/data-services/models] (https://github.com/SoftServeUniversity/yunakquiz/blob/GuestSearch/source/data-service/models/searchQuizzes.rb)
In this module are 3 functions:

+ ``` dataCheck ``` for checking input data and adding status key if needed
+ ``` mainSearch ``` for main search request to db
+ ``` withTags ``` for checks output data from checkout function and calls main search request

## Front-end part

Created angularjs module ``` yunakQuiz.guestSearch ``` in folder [yunakquiz/source/ang-app/app/modules/guest-search] (https://github.com/SoftServeUniversity/yunakquiz/tree/GuestSearch/source/ang-app/app/modules/guest-search)
+ Some styles were added to app.css [yunakquiz/source/ang-app/app/app.css] (https://github.com/SoftServeUniversity/yunakquiz/blob/GuestSearch/source/ang-app/app/app.css)
+ Created ``` guest-search-page.html ```[yunakquiz/source/ang-app/app/modules/guest-search/guest-search-page.html] (https://github.com/SoftServeUniversity/yunakquiz/blob/GuestSearch/source/ang-app/app/modules/guest-search/guest-search-page.html)
+ Created angular controller ``` SearchCtrl ``` [yunakquiz/source/ang-app/app/modules/guest-search/guest-searchCtrl.js] (https://github.com/SoftServeUniversity/yunakquiz/blob/GuestSearch/source/ang-app/app/modules/guest-search/guest-searchCtrl.js)
+ Created angular service (factory) ``` guestSearchFactory ``` [yunakquiz/source/ang-app/app/modules/guest-search/guest-searchCtrl.js](https://github.com/SoftServeUniversity/yunakquiz/blob/GuestSearch/source/ang-app/app/modules/guest-search/guest-searchCtrl.js)
+ Added ``` ngTagsInput ```, ``` ui.bootstrap ``` modules to [app.js](https://github.com/SoftServeUniversity/yunakquiz/blob/GuestSearch/source/ang-app/app/app.js) and scripts to [index.html](https://github.com/SoftServeUniversity/yunakquiz/blob/GuestSearch/source/ang-app/app/index.html)

------

Thanks for your time and attention and awaiting for your reply. :bowtie: