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 in Getting Started tutorial

Damian Legawiec717213cae562
diff --git a/guides/src/content/developer/tutorials/getting_started_tutorial.md b/guides/src/content/developer/tutorials/getting_started_tutorial.md
index a007a80b08..6ba120e760 100644
--- a/guides/src/content/developer/tutorials/getting_started_tutorial.md
+++ b/guides/src/content/developer/tutorials/getting_started_tutorial.md
@@ -6,85 +6,17 @@ order: 0
## Prerequisites
-Before starting this tutorial, make sure you have Ruby and RubyGems installed on your system. This is fairly straightforward, but differs depending on which operating system you use.
+Before starting this tutorial, make sure you have [Docker](https://docs.docker.com/get-docker/) installed on your system. This is fairly straightforward, but differs depending on which operating system you use.
-By following this tutorial, you will create a simple Spree project called `my_store`. Before you can start building the application, you need to make sure that you have Rails itself installed.
+## Installation
-### Installing Rails
-
-In most cases, the easiest way to install Rails is to take advantage of RubyGems:
-
-```bash
-gem install rails
-```
-
-### Installing Image Magick
-
-Spree also uses the ImageMagick library for manipulating images. Using this library allows for automatic resizing of product images and the creation of product image thumbnails. ImageMagick is not a Rubygem and it can be a bit tricky to install. There are, however, several excellent sources of information on the Web for how to install it. A basic Google search should help you if you get stuck.
-
-If you are using macOS, a recommended approach is to install ImageMagick
-using [Homebrew](http://mxcl.github.com/homebrew/). This can be done with the
-following command:
-
-```bash
-brew install imagemagick
-```
-
-If you are using Unix or Windows check out [Imagemagick.org](http://www.imagemagick.org/) for more detailed instructions on how to setup ImageMagick for your particular system.
-
-## Creating a New Spree Project
-
-The distribution of Spree as a Rubygem allows it to be used in a new Rails project or added to an existing Rails project. This guide will assume you are creating a brand new store and will walk you through the process, starting with the creation of a new Rails application.
-
-### Creating the Rails Application
-
-Let's start by creating a standard Rails application using the following command:
-
-```bash
-rails new my_store
-```
-
-### Adding Spree to Your Rails Application
-
-Now that we have a basic Rails application we can add Spree to it. This approach would also work with existing Rails applications that have been around for a long time (assuming they are using the correct version of Rails.)
-
-After you create the store application, switch to its folder to continue work directly in that application:
-
-```bash
-cd my_store
-```
-
-Add Spree gems to your Gemfile:
-
-```ruby
-gem 'spree', '~> 4.2.0.rc3'
-gem 'spree_auth_devise', '~> 4.3'
-gem 'spree_gateway', '~> 3.9'
-```
-
-Run `bundle install`
-
-**Note**: if you run into `Bundler could not find compatible versions for gem "sprockets":` error message, please run
-
-```bash
-bundle update
-```
-
-Use the install generators to set up Spree:
-
-```bash
-bundle exec rails g spree:install --user_class=Spree::User
-bundle exec rails g spree:auth:install
-bundle exec rails g spree_gateway:install
-```
+1. Download [Spree Starter](https://github.com/spree/spree_starter/archive/master.zip)
+2. Unzip it
+3. Run `bin/setup` in `spree_starter` directory
## Hello, Spree!
-You now have a functional Spree application after running only a few commands! To see it, you need to start a web server on your development machine. You can do this by running another command:
-
-```bash
-bundle exec rails s
-```
+You now have a functional Spree application after running only a few commands!
To see your application in action, open a browser window and navigate to [http://localhost:3000](http://localhost:3000). You should see the Spree default home page:
@@ -99,12 +31,6 @@ Use your browser window to navigate to
[http://localhost:3000/admin](http://localhost:3000/admin). You can login with
the username `[email protected]` and password `spree123`.
-If you selected not to use the `--auto-accept` option when you added Spree to your Rails app, and did not install the seed data, the admin user will not yet exist in your database. You can run a simple rake task to create a new admin user.
-
-```bash
-bundle exec rake spree_auth:admin:create
-```
-
Upon successful authentication, you should see the admin screen:
![Admin Screen](../../../images/developer/overview.png)