Spree, a leading open source eCommerce platform built with Ruby on Rails has just been updated to version 3.7.0 and this brief tutorial shows students and new users how to install or upgrade on Ubuntu 16.04 | 18.04.
Spree 3.7 is the last of the 3.x release line and it brings boat load of features and bug fixes — over 700 commits from 17 contributors.
This release also brings a completely new, easy to work with and lightweight REST API, a new and fast Storefront API (v2), new JSON API based on Netflix fast_json_api serializer library and a removal of CoffeeScript.
For more about this release, please check its release page.Below is a list of additional items introduced with this release:
- Dropped support for Ruby 2.2
- Support multiple currencies for Store Credits management in Admin Panel
- Added information if Product is backorderable on Product page
- Improved Admin Panel Variant autocomplete
- Added ShippingRate#final_price method
- Fixed displaying currency in Admin Panel -> Return Authorizations
- Removed previously deprecated Spree::Core::EnvironmentExtension
- Removed previously deprecated EmailValidator
Also, version 3.7 released with an improved MySQL support which fixes several MySQL related bugs.
For those who want to install Spree eCommerce on Ubuntu, the post below should be a great place to start. It shows you how to install Spree on Ubuntu 16.04 | 18.04 LTS.
If you already have Spree installed and you wish to upgrade, then follow the steps below:
If you are upgrading to a new version of Spree that is several versions ahead of your current version, it is suggested that you update one version at a time and follow the release notes associated with each update.
Add Spree gems to your Gemfile:
gem 'spree', '~> 3.7.0' gem 'spree_auth_devise', '~> 3.5' gem 'spree_gateway', '~> 3.4'
Rails 5.2 versions come with ActiveStorage support. Spree 3.7 introduces REST API v2 and new customization system called Dependencies – we recommend starting with this version as it will be an easy upgrade to Spree 4.0.
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'
Then update by running the commands below:
bundle update bundle install
You may also like the post below: