Some notes for creating a testing environment for Spree eCommerce.

Note: The operating system is Linux Fedora Core 20

The following "Getting started" tutorial was used on the Spree website.

I already have a Ruby and Ruby Gems (see other articles), however Spree version 2.4 requires rails version 4.1.8

Install required version of rails:

user$ gem install rails -v 4.1.8

To check that this version installed see below

user$ rails -v

Install ImageMagickr:

Spree requires that ImageMagick is installed on your system

root# yum install ImageMagick

Install Spree:

user$ gem install spree_cmd

Create new "shop" application:

user$ cd /home/<username>/rails
user$ rails _4.1.8_ new shop

 This created an error/warning...You are using Rubygems 1.8.24 with Spring, upgrade to 2.1.0 and run 'gem pristine --all'

root# gem update --system 2.1.0
root# gem pristine --all

user$ cd home/<username>/rails/shop
user$ spree install --auto-accept

This created an error: git://, at 2-4-stable is not yet checked out. Run 'bundle install' first. Tried the 'bundle install but this DID not work - instead

user$ bundle install --deployment
user$ spree install --auto-accept

This created an error requiring a secret key...devise.secret.key =  blar...blar, in the file config/initializers/devise.rb

I eddited the file to add the secret key then did the following:

bundle install --no-deployment
user$ bundle update

See the new store!

user$ rails server

Now open a browser and go to the URL http://localhost:3000
You should see the default Spree store homepage.

Spree test site

Login to the Backend admin area

Go to the URL http://localhost:3000/admin
You can login with the username This email address is being protected from spambots. You need JavaScript enabled to view it. and password spree123

Upon successful authentication, you should see the admin screen.