Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Use Spree Starter as the default installation option in README

Damian Legawiec106eff390700
diff --git a/README.md b/README.md
index 0447ada278..026d81022b 100755
--- a/README.md
+++ b/README.md
@@ -40,7 +40,7 @@ Explore demo features: https://spreecommerce.org/spree-commerce-demo-explainer/
Or fire up your own demo on Heroku:
-[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/spree/spree/tree/4-1-stable)
+[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/spree/spree_starter)
Admin panel credentials for your own Heroku demo:
@@ -49,64 +49,61 @@ Admin panel credentials for your own Heroku demo:
## Installation
-### Create new Rails app (optional)
+### Option A - use Spree Starter
-If you're starting a new application from scrach run:
+1. Download [Spree Starter](https://github.com/spree/spree_starter/archive/master.zip)
+2. Unzip it
+3. Run `bin/setup` in `spree_starter` directory
-```bash
-rails new my_store
-cd my_store
-```
-
-You can **add Spree to your existing Rails application** as well.
+### Option B - add Spree to an existing application
-### Add Spree gems to your `Gemfile`
+1. Add Spree gems to your `Gemfile`
-#### Rails 6.0 and 6.1
+ ##### Rails 6.0 and 6.1
-```ruby
-gem 'spree', '~> 4.2.0.rc3'
-gem 'spree_auth_devise', '~> 4.3'
-gem 'spree_gateway', '~> 3.9'
-```
+ ```ruby
+ gem 'spree', '~> 4.2.0.rc3'
+ gem 'spree_auth_devise', '~> 4.3'
+ gem 'spree_gateway', '~> 3.9'
+ ```
-#### Rails 5.2
+ ##### Rails 5.2
-```ruby
-gem 'spree', '~> 3.7.0'
-gem 'spree_auth_devise', '~> 3.5'
-gem 'spree_gateway', '~> 3.4'
-```
+ ```ruby
+ gem 'spree', '~> 3.7.0'
+ gem 'spree_auth_devise', '~> 3.5'
+ gem 'spree_gateway', '~> 3.4'
+ ```
-To see what rails version are you using run this command:
+ To see what rails version are you using run this command:
-```bash
-rails -v
-```
+ ```bash
+ rails -v
+ ```
-Older rails versions are also supported: [Rails 5.1](https://guides.spreecommerce.org/release_notes/3_5_0.html), [Rails 5.0](https://guides.spreecommerce.org/release_notes/3_2_0.html), [Rails 4.2](https://guides.spreecommerce.org/release_notes/3_1_0.html)
+ Older rails versions are also supported: [Rails 5.1](https://guides.spreecommerce.org/release_notes/3_5_0.html), [Rails 5.0](https://guides.spreecommerce.org/release_notes/3_2_0.html), [Rails 4.2](https://guides.spreecommerce.org/release_notes/3_1_0.html)
-### Install gems
+2. Install gems
-```bash
-bundle install
-```
+ ```bash
+ bundle install
+ ```
-**Note**: if you run into `Bundler could not find compatible versions for gem "sprockets":` error message, please run
+ **Note**: if you run into `Bundler could not find compatible versions for gem "sprockets":` error message, please run
-```bash
-bundle update
-```
+ ```bash
+ bundle update
+ ```
-### Use the install generators to set up Spree
+3. Use the install generators to set up Spree
-```shell
-bundle exec rails g spree:install --user_class=Spree::User
-bundle exec rails g spree:auth:install
-bundle exec rails g spree_gateway:install
-```
+ ```shell
+ bundle exec rails g spree:install --user_class=Spree::User
+ bundle exec rails g spree:auth:install
+ bundle exec rails g spree_gateway:install
+ ```
-## Installation options
+#### Installation options
By default, the installation generator (`rails g spree:install`) will run
migrations as well as adding seed and sample data and will copy storefront data
@@ -126,16 +123,10 @@ bundle exec rake spree_sample:load
bundle exec rails g spree:frontend:copy_storefront
```
-### Headless installation
+#### Headless installation
To use Spree in [API-only mode](https://guides.spreecommerce.org/api/overview/) you need to replace `spree` with `spree_api` in your project Gemfile. This will skip Storefront and Admin Panel. If you would want to include the Admin Panel please add `spree_backend` to your Gemfile.
-## Run rails sever
-
-```bash
-rails s
-```
-
## Browse Storefront
Go to http://localhost:3000