Name: spree
Owner: Spree Commerce
Description: Spree is a complete, modular & API-driven open source ecommerce solution for Ruby on Rails
Created: 2008-03-10 14:45:35.0
Updated: 2018-01-19 12:17:52.0
Pushed: 2018-01-19 13:25:13.0
Homepage: https://spreecommerce.org
Size: 87563
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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 developers from Spark Solutions and Vinsol. 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.
Try Spree with direct deployment on Heroku:
If you have 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
er run --rm -it -p 3000:3000 spreecommerce/spree:latest
Add Spree gems to your Gemfile:
'spree', '~> 3.4.4'
'spree_auth_devise', '~> 3.3'
'spree_gateway', '~> 3.3'
'spree', '~> 3.2.7'
'spree_auth_devise', '~> 3.3'
'spree_gateway', '~> 3.3'
'spree', '~> 3.1.12'
'spree_auth_devise', '~> 3.3'
'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:
s g spree:install --user_class=Spree::User
s g spree:auth:install
s g spree_gateway:install
Alternatively, if you want to use the bleeding edge version of Spree, add this to your Gemfile:
'spree', github: 'spree/spree'
'spree_auth_devise', github: 'spree/spree_auth_devise'
'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
s 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.
le exec rake railties:install:migrations
le exec rake db:migrate
le exec rake db:seed
le exec rake spree_sample:load
If you encountered any problems with bundler
, please try downgrading to bundler 1.13.7
or earlier.
http://localhost:3000
http://localhost:3000/admin
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 | | Community supported Spree Payment Method Gateways | spree_auth_devise | | Provides authentication services for Spree, using the Devise gem. | spree_i18n | | I18n translation files for Spree Commerce | spree-multi-domain | | Multiple Spree stores on different domains - single unified backed for processing orders | spree_multi_currency | | Provides UI to allow configuring multiple currencies in Spree | | spree_braintree_vzero | | Official Spree Braintree v.zero + PayPal extension | | spree_address_book | | Adds address book for users to Spree | | spree_digital | | A Spree extension to enable downloadable products | | spree_social | | Building block for spree social networking features (provides authentication and account linkage) | | spree_related_products | | Related products extension for Spree | spree_active_shipping | | Spree integration for Shopify's active_shipping gem | spree_static_content | | Manage static pages for Spree | | spree-product-assembly | | Adds oportunity to make bundle of products | | spree_editor | | Rich text editor for Spree with Image and File uploading in-place | | spree_recently_viewed | | Recently viewed products in Spree | | spree_wishlist | | Wishlist extension for Spree | | spree_sitemap | | Sitemap Generator for Spree | | spree_volume_pricing | | It determines the price for a particular product variant with predefined ranges of quantities | better_spree_paypal_express | | This is the official Paypal Express extension for Spree.
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
.
ig.assets.debug = false
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
clone git://github.com/spree/spree.git
pree
Install the gem dependencies
le install
Create a sandbox Rails application for testing purposes which automatically perform all necessary database setup
le exec rake sandbox
Start the server
andbox
s server
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.
ore
LE_GEMFILE=../Gemfile bundle exec rake test_app
le 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.
ostgres bundle exec rake test_app
If you want to run specs for only a single spec file
le exec rspec spec/models/spree/state_spec.rb
If you want to run a particular line of spec
le exec rspec spec/models/spree/state_spec.rb:7
You can also enable fail fast in order to stop tests at the first failure
_FAST=true bundle exec rspec spec/models/state_spec.rb
If you want to run the simplecov code coverage report
RAGE=true bundle exec rspec spec
If you're working on multiple facets of Spree to test, please ensure that you have a postgres user:
teuser -s -r postgres
And also ensure that you have PhantomJS installed as well:
update && brew install phantomjs
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:
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.