Wednesday, July 25, 2012

Saturday, July 7, 2012

Getting started Spree

Full documentation can be found here:
http://railscasts.com/episodes/298-getting-started-with-spree
http://guides.spreecommerce.com/getting_started.html
https://github.com/spree/spree

This is an approximate way of spree installation.
Why 'approximate' - because docs may differ, and if installing with rails '3.2.3' causes no troubles, '3.2.6' version pulls with itself, in my case, an outdated versions of spree_core, _api and so on.

1. Create rails application
rails new app
cd app
bundle install
2. In gemfile add gem 'spree', '1.1.1'
bundle install
This will add spree to the gemfile snapshot.
In case of errors try fiddling with 
rails version   '3.2.3', '3.2.6' and 
spree versions: '1.1.1', '1.1.2' (actual for the current moment)

3. This will create spree application.
rails g spree:install
4. Run
rake db:bootstrap
5. [optional] This will setup default scheme for the application.
gem 'spree_blue_theme', :git => 'git://github.com/spree/spree_blue_theme.git'
If you want to use edge version, modify gemfile:
gem 'spree', :git => 'git://github.com/spree/spree.git'

Powered by Blogger.