This repository contains the source code for the Room Reservation system which will be in use at the Oregon State University Libraries & Press' Valley Library.
This application is in active development and not ready for use in production.
Currently this system relies upon a variety of systems only in use at OSU's Valley Library. The assumptions made are as follows:
Work towards generalizing these assumptions may be done at a later date. Pull requests accepted.
This application makes heavy use of caching via memcached for available times. However, it should be fast enough without the caching for general use. Implementing caching requires the following:
unicorn
capistrano
sprockets-digest-assets-fix
guard
guard-rspec
better_errors
debugger2
pry
pry-byebug
gem 'eventmachine', :git => 'git://github.com/eventmachine/eventmachine.git', :branch => 'master'
gem 'mysql2', '~> 0.3.20'
gem 'jquery-ui-rails', '~>4.2'
redis://redis:6379
config/initializers/sidekiq.rb
:
Sidekiq.configure_server do |config|
config.redis = {:url => 'redis://redis:6379',:namespace => "roomreservation"}
end
Sidekiq.configure_client do |config|
config.redis = {:url => 'redis://redis:6379',:namespace => "roomreservation"}
end
cp docker-compose.override.example.yml docker-compose.override.yml
docker-compose build
docker-compose up
Run db migrations
docker-compose rub web bash
> RAILS_ENV=development bundle exec rake db:create
> RAILS_ENV=development bundle exec rake db:migrate