/BookLibrary

A Rails application for managing a community library

Primary LanguageRuby

== README {Build Status}[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.

Application basics:

  1. Ruby version: 2.1.2
  2. Rails version: 4.1.8

Configuration

  1. Postgres Database
  2. Sendgrid for ActionMailer (sendgrid gem) https://github.com/stephenb/sendgrid
  3. Elasticsearch for queries (searchkick gem) https://github.com/ankane/searchkick

Database creation - to set up the database:

  1. run rake db:create
  2. then rake db:migrate

Deployment instructions

  1. keep private keys in a local_env.yml file in the config directory (do not include in commits)

Elasticsearch

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 `