!!! This is a WORK IN PROGRESS !!!
This tutorial is a work in progress.
Atrium is a Rails Engines plugin containing the core code for a Atrium application. The full hydra stack includes the following:
- Blacklight (a rails engines plugin) for the User Interface
- Solr (a java application, also ported to other languages) for the Search Engine
- Atrium (a rails engines plugin) to create collection, exhibit and showcase base on the blacklight configuration
This is a Ruby on Rails 3 gem.
Currently Atrium is compatible with Rails 3.1
gem install 'rails' --version '~>3.0.11' gem install 'bundler'
rails new my_hydra_head cd my_hydra_head
First, add them to the Gemfile of your application:
source 'http://rubygems.org' gem 'rails', '~>3.1.3' gem 'blacklight', '~> 3.2' # We will assume that you're using sqlite3 for testing/demo, # but in a production setup you probably want to use a real sql database like mysql or postgres gem 'sqlite3' # We will assume you're using devise in tutorials/documentation. # You are free to implement your own User/Authentication solution in its place. gem 'devise' # For testing. You will probably want to use all of these to run the tests you write for your hydra head group :development, :test do gem 'bcrypt-ruby' gem 'capybara' gem 'cucumber-rails' gem 'database_cleaner' gem 'factory_girl' gem 'mocha' gem 'rspec' gem 'rspec-rails', '>=2.5.0' gem 'ruby-debug' gem 'sqlite3' gem "jettywrapper" end # (leave this comment here to catch a stray line inserted by blacklight!)
To install all of the dependencies, run:
bundle install
On some systems, you will have to install system libraries that various gems rely on. For example, in order to install the curl gem on ubuntu you have to first install libcurl4-openssl-dev and then re-run bundler.
Run the blacklight generator
rails g blacklight --devise
Run the atrium generator
rails g atrium -df
Run the database migrations
rake db:migrate rake db:test:prepare
Congratulations. You’ve set up the code for your Atrium.
Read Tools for Developing and Testing, then read How to Get Started to get a sense of what you can do with your Hydra Head.
#TODO