== README {}[https://travis-ci.org/codealchemy/BookLibrary] {}[https://codeclimate.com/github/codealchemy/BookLibrary] {}[https://codeclimate.com/github/codealchemy/BookLibrary/coverage]
BookLibrary is a Ruby on Rails application to manage a library of items that are checked out and in by users.
- Ruby version: 2.1.2
- Rails version: 4.1.8
- Postgres Database
- Sendgrid for ActionMailer (sendgrid gem) https://github.com/stephenb/sendgrid
- Elasticsearch for queries (searchkick gem) https://github.com/ankane/searchkick
- run rake db:create
- then rake db:migrate
- keep private keys in a local_env.yml file in the config directory (do not include in commits)
In ubuntu, start elasticsearch. ` apt-get install openjdk-7-jre-headless
sudo /etc/init.d/elasticsearch restart
#or
sudo service elasticsearch restart `
install elasticsearch
http://www.unixmen.com/install-elasticsearch-ubuntu-14-04/
Mac, install
brew install elasticsearch
Index book
` Go to rails console
Book.reindex `