osulp / Room-Reservation

OSU Libraries & Press Room Reservation System
GNU Affero General Public License v3.0
6 stars 5 forks source link
osu osu-libraries room-reservation

Valley Library Room Reservation System

Build Status Coverage Status

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.

Status

This application is in active development and not ready for use in production.

Usage Outside OSU L&P

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.

Caching

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:

Development Setup using Docker

1. Install Notes using Docker

2. Update sidekiq initializer and set redis url to 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

3. Build and install

cp docker-compose.override.example.yml docker-compose.override.yml
docker-compose build
docker-compose up

Run rake tasks in the web container

Run db migrations

docker-compose rub web bash
> RAILS_ENV=development bundle exec rake db:create
> RAILS_ENV=development bundle exec rake db:migrate