Spree is a complete, modular & API-driven open source ecommerce solution for Ruby on Rails
Clone or download
damianlegawiec Merge pull request #9089 from vernondegoede/fix-shipments-errors-admin
Show errors when something goes wrong while processing shipment
Latest commit 3cce4b6 Nov 21, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Send test coverage to CodeClimate Nov 9, 2018
.github Better information about contributing process Mar 15, 2017
api Merge pull request #9087 from spark-solutions/feature/api-v2-cart-rem… Nov 20, 2018
backend Fix ESLint warnings Nov 21, 2018
cmd Fix rubocop issues for cmd Nov 15, 2018
core Merge pull request #9084 from spark-solutions/fix/rubocop-leftover-is… Nov 17, 2018
frontend Fix rubocop issues for frontend Nov 15, 2018
guides Merge pull request #9085 from mmeyers00/master Nov 18, 2018
lib permitted_attributes gem cannot be installed alongside rails 5 so no … Nov 16, 2018
sample Fix rubocop issues with samples Nov 15, 2018
.codeclimate.yml Set rubocop to 0.60 Nov 15, 2018
.editorconfig EditorConfig 150 characters per line Jan 10, 2018
.eslintignore Ignore extension template in ESLint/StyleLint Jan 10, 2018
.eslintrc Add basic JS integration with API v2 Oct 28, 2018
.gitignore Fix problem with guest_token reset to a new value Sep 5, 2018
.rubocop-disabled.yml Run rubocop -a in core/spec Feb 13, 2018
.rubocop.yml Disable Rubocop's NumericPredicate Nov 16, 2018
.ruby-version Use Ruby 2.5 by default May 17, 2018
.stylelintignore Ignore extension template in ESLint/StyleLint Jan 10, 2018
.stylelintrc Added StyleLint Jan 10, 2018
.travis.yml Drop ruby 2.2 Jun 27, 2018
CHANGELOG.md Added annotations to 3.7 release notes May 29, 2018
CODE_OF_CONDUCT.md add code of conduct from contributor covenant v1.2 Jul 23, 2015
Dockerfile Use Ruby 2.5 by default May 17, 2018
Gemfile Isolate each component of Spree Mar 21, 2012
README.md Added test coverage badge Nov 10, 2018
Rakefile SPREE_VERSION removed, total cleanup of gemspecs and rakefiles, spree… Feb 28, 2016
app.json use spree/spree repository instead of spark-solutions/spree Sep 4, 2017
build-ci.rb Fixed rubocop issues in build-ci Nov 16, 2018
build.sh Add setting bundle gemfile to test_app Feb 6, 2018
common_spree_dependencies.rb Set rubocop to 0.60 Nov 15, 2018
docker-entrypoint.sh create dockerfile and entrypoint for docker Oct 27, 2017
license.md license.md: bump the year range Aug 16, 2017
spree.gemspec Drop ruby 2.2 Jun 27, 2018
spree_logo.png Old/new logo for the Spree Open Source project Jul 27, 2016


Gem Version Circle CI Code Climate Test Coverage Slack Status

Spree is a complete open source e-commerce solution built with Ruby on Rails. It was originally developed by Sean Schofield and is now maintained by Spark Solutions. We're open to contributions and accepting new Core Team members.

Spree consists of several different gems, each of which are maintained in a single repository and documented in a single set of online documentation.

  • spree_api (RESTful API)
  • spree_frontend (Customer frontend)
  • spree_backend (Admin panel)
  • spree_cmd (Command-line tools)
  • spree_core (Models & Mailers, the basic components of Spree that it can't run without)
  • spree_sample (Sample data)


Try Spree with direct deployment on Heroku:


If you want to run demo spree application on your machine, you can use our docker image with command below. It will download and run sample Spree application on http://localhost:3000 (Login: spree@example.com / spree123)

docker run --rm -it -p 3000:3000 spreecommerce/spree:3.6.4

Getting Started

Add Spree gems to your Gemfile:

Rails 5.2

gem 'spree', '~> 3.6.4'
gem 'spree_auth_devise', '~> 3.3'
gem 'spree_gateway', '~> 3.3'

Rails 5.1

gem 'spree', '~> 3.5.0'
gem 'spree_auth_devise', '~> 3.3'
gem 'spree_gateway', '~> 3.3'

Rails 5.0

gem 'spree', '~> 3.2.7'
gem 'spree_auth_devise', '~> 3.3'
gem 'spree_gateway', '~> 3.3'

Rails 4.2

gem 'spree', '~> 3.1.12'
gem 'spree_auth_devise', '~> 3.3'
gem 'spree_gateway', '~> 3.3'

Note: If you're using fresh Rails 5.1 application, you need to run bundle update i18n before following steps below.

Run bundle install

Use the install generators to set up Spree:

rails g spree:install --user_class=Spree::User
rails g spree:auth:install
rails g spree_gateway:install

Installation options

Alternatively, if you want to use the bleeding edge version of Spree, add this to your Gemfile:

gem 'spree', github: 'spree/spree'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise'
gem 'spree_gateway', github: 'spree/spree_gateway'

Note: The master branch is not guaranteed to ever be in a fully functioning state. It is unwise to use this branch in a production system you care deeply about.

By default, the installation generator (rails g spree:install) will run migrations as well as adding seed and sample data and will copy frontend views for easy customization (if spree_frontend available). This can be disabled using

rails g spree:install --migrate=false --sample=false --seed=false --copy_views=false

You can always perform any of these steps later by using these commands.

bundle exec rake railties:install:migrations
bundle exec rake db:migrate
bundle exec rake db:seed
bundle exec rake spree_sample:load

Bundle Issues

If you encountered any problems with bundler, please try downgrading to bundler 1.13.7 or earlier.

Browse Store


Browse Admin Interface


If you have spree_auth_devise installed, you can generate a new admin user by running rake spree_auth:admin:create.


Spree Extensions provide additional features not present in the Core system.

Extension Spree 3.1+ support Description
spree_gateway Build Status Community supported Spree Payment Method Gateways
spree_auth_devise Build Status Provides authentication services for Spree, using the Devise gem.
spree_i18n Build Status I18n translation files for Spree Commerce
spree-multi-domain Build Status Multiple Spree stores on different domains - single unified backed for processing orders
spree_multi_currency Build Status Provides UI to allow configuring multiple currencies in Spree
spree-mollie-gateway Build Status Official Mollie payment gateway for Spree Commerce.
spree_braintree_vzero Build Status Official Spree Braintree v.zero + PayPal extension
spree_address_book Build Status Adds address book for users to Spree
spree_digital Build Status A Spree extension to enable downloadable products
spree_social Build Status Building block for spree social networking features (provides authentication and account linkage)
spree_related_products Build Status Related products extension for Spree
spree_active_shipping Build Status Spree integration for Shopify's active_shipping gem
spree_static_content Build Status Manage static pages for Spree
spree-product-assembly Build Status Adds oportunity to make bundle of products
spree_editor Build Status Rich text editor for Spree with Image and File uploading in-place
spree_recently_viewed Build Status Recently viewed products in Spree
spree_wishlist Build Status Wishlist extension for Spree
spree_sitemap Build Status Sitemap Generator for Spree
spree_volume_pricing Build Status It determines the price for a particular product variant with predefined ranges of quantities
better_spree_paypal_express Build Status This is the official Paypal Express extension for Spree.
spree_globalize Build Status Adds support for model translations (multi-language stores)
spree_avatax_certified Build Status Improve your Spree store's sales tax decision automation with Avalara AvaTax
spree_analytics_trackers Build Status Adds support for Analytics Trackers (Google Analytics & Segment)


You may notice that your Spree store runs slowly in development environment. This can be because in development each asset (css and javascript) is loaded separately. You can disable it by adding the following line to config/environments/development.rb.

config.assets.debug = false

Developing Spree

Spree is meant to be run within the context of Rails application and the source code is essentially a collection of gems. You can easily create a sandbox application inside of your cloned source directory for testing purposes.

Clone the Git repo

git clone git://github.com/spree/spree.git
cd spree

Install the gem dependencies

bundle install


Create a sandbox Rails application for testing purposes which automatically perform all necessary database setup

bundle exec rake sandbox

Start the server

cd sandbox
rails server

Running Tests

We use CircleCI to run the tests for Spree.

You can see the build statuses at https://circleci.com/gh/spree/spree.

Each gem contains its own series of tests, and for each directory, you need to do a quick one-time creation of a test application and then you can use it to run the tests. For example, to run the tests for the core project.

cd core
BUNDLE_GEMFILE=../Gemfile bundle exec rake test_app
bundle exec rspec spec

If you would like to run specs against a particular database you may specify the dummy app's database, which defaults to sqlite3.

DB=postgres bundle exec rake test_app

If you want to run specs for only a single spec file

bundle exec rspec spec/models/spree/state_spec.rb

If you want to run a particular line of spec

bundle exec rspec spec/models/spree/state_spec.rb:7

You can also enable fail fast in order to stop tests at the first failure

FAIL_FAST=true bundle exec rspec spec/models/state_spec.rb

If you want to run the simplecov code coverage report

COVERAGE=true bundle exec rspec spec

If you're working on multiple facets of Spree to test, please ensure that you have a postgres user:

createuser -s -r postgres

And also ensure that you have ChromeDriver installed as well. Please follow this instruction to install it.

To execute all the tests, you may want to run this command at the root of the Spree project to generate test applications and run specs for all the facets:

bash build.sh


Spree is an open source project and we encourage contributions. Please review the contributing guidelines before contributing.

In the spirit of free software, everyone is encouraged to help improve this project.

Here are some ways you can contribute:


Spree is released under the New BSD License.

About Spark Solutions

Spark Solutions

Spree is maintained by Spark Solutions Sp. z o.o..

We are passionate about open source software. We are available for hire.