Jump to content

The ultimate community for Ruby on Rails developers.


How to use Spree eCommerce solution

Spree Rails4

  • Please log in to reply
No replies to this topic

#1 ajebali



  • Members
  • 1 posts

Posted 29 October 2013 - 09:59 AM

Spree is a complete open source e-commerce solution for Ruby on Rails. The complete video is here http://programmerstube.com/web/ruby-tutorial/how-to-use-spree-ecommerce-solution


1. Install imagemagick
To install ImageMagick, download it from http://www.imagemagi...ses.php#windows
and then run

$ brew install imagemagick

Spree also uses the ImageMagick library for manipulating images. Using this library allows for automatic resizing of product images and the creation of product image thumbnails. ImageMagick is not a Rubygem and it can be a bit tricky to install. There are, however, several excellent sources of information on the Web for how to install it. A basic Google search should help you if you get stuck.


2. Create a Rails application


rails new store

cd store

3. Edit the Gem file


Open Gem file

gem 'spree', '0.70.1'

4. Run bundle to install spree


Generate the site

rails g spree:site

As you can see the generated site contains in “app/assets” always 2 folders: “admin” and “store” which respresents the administrator area and the frontend.


5. Migrate the database

$ rake db:bootstrap

When it asks for for email and password, just keep them empty.
When it asks to load sample data, choose “y” to install them.


6. Run the application



Also tagged with one or more of these keywords: Spree, Rails4

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users