Overview
If you already have a Ruby on Rails application, you can add Spree to it by following these steps.Spree works with PostgreSQL, MySQL, and SQLite — whatever database your Rails app already uses. No database migration is needed.
1. Add Spree gems
Add these lines to your projectGemfile:
2. Run the install generators
Spree uses a modular installation approach. First install the core, then add optional components.Install core Spree
This installs core models, API, CLI, and authentication:| Option | Description |
|---|---|
user_class | The class for your users, eg. Spree::User or User |
admin_user_class | The class for admin users (defaults to user_class) |
authentication | Authentication gem: devise or custom |
migrate | Whether to run migrations (default: true) |
seed | Whether to run the seed file (default: true) |
sample | Whether to add sample data (default: false) |
admin_email | Email of the first admin user |
admin_password | Password of the first admin user |
Install Admin Panel (optional)
Add sample data (optional)
To add sample data to your store, run:Accessing Admin Panel
Navigate to http://localhost:3000/admin and log in with the default credentials:spree@example.com | |
| Password | spree123 |

Congrats! You’ve set up your Spree Commerce and it’s looking amazing! Give Spree a GitHub Star, why dont’t ya? Thank you for supporting Spree open-source! Need support or want to give some feedback? Join our community with 6000+ members or drop us an email at hello@spreecommerce.org.

