This guide will show you how to add Spree to an existing Ruby on Rails application.
Add Spree gems
Gemfile
:Run the install generator
user_class
: The class that you want to use for your users, eg. Spree::User
or User
. This class needs to be present in your application.authentication
: The authentication gem to use, eg. devise
or custom
. Custom will require you to provide your own authentication code.install_admin
: Whether to install the Admin Panel.install_storefront
: Whether to install the Storefront.migrate
: Whether to run migrations.sample
: Whether to add sample data (products, taxons, etc).seed
: Whether to run the seed file.admin_email
: The email of the (first) admin user.admin_password
: The password of the (first) admin user.Adding sample data
Logging into the Admin Dashboard
[email protected]
spree123
Browsing Storefront