== README
# Getting Started
## Installing Ruby
Usually ruby installed with operating system is quite old (and slow), so we
will install newer version. The process is not trivial so we will use
existing tools - ruby-install (will checkout and compile ruby for us) and
chruby (will allow us to switch between different versions of ruby).
wget -O ruby-install-0.4.0.tar.gz https://github.com/postmodern/ruby-install/archive/v0.4.0.tar.gz
tar -xzvf ruby-install-0.4.0.tar.gz
cd ruby-install-0.4.0/
sudo make install
wget -O chruby-0.3.8.tar.gz https://github.com/postmodern/chruby/archive/v0.3.8.tar.gz
tar -xzvf chruby-0.3.8.tar.gz
cd chruby-0.3.8/
sudo make install
echo "source /usr/local/share/chruby/chruby.sh" >> ~/.bashrc
echo "source /usr/local/share/chruby/auto.sh" >> ~/.bashrc
ruby-install ruby 2.1.1
## Installing Rails (and other gems)
Go to the root of calipel rails app (on my machine: /home/m/Projects/other/jv-calipel/web) and execute
gem install bundler
bundle install
## Preparing Databases
In the web app root execute
rake db:create:all
rake db:migrate
RAILS_ENV=test rake db:migrate
## Starting Local Rails Server
In the web app root execute
rails server