#Search App
##Intent
This app is a simple jumping-off point for learning about simple search in ruby & more advanced search powered by Postgresql. Originally written for the Atlanta Ruby User Group intermediate ruby study group.
##Requirements
- Ruby 2.1.0
- Rails 4.1.1
- Postgresql
- OSX users with homebrew installed may
brew install postgresql
- OSX users with homebrew installed may
##Setup
- Clone this repo
- Start the Postgres Server
postgres -D /usr/local/pgsql/data
Detailed instructions can be found here, OSX users may be interested in using Postgres.App Bundle Install
to install gems & dependenciesrake db:setup
to create database, run migrations & seed database (if this step fails ensure you have postgres running)rails server
to ensure everything is in proper working condition
##Branches
Because this app is intended for educational purposes, branches are maintained for feature steps of the process:
- 1_set_up_simple_search contains code for a simple search on one column in one model
- 2_set_up_multi-col_insensitive_search builds on the previous branch and contains code for a multi column, case-insensitive search
- 3_set_up_advanced_postgres_search builds on the previous branch and contains code for a search that takes advantage of Postgres' full-text search & search result rank