An Ember Ecosystem
For Spree Commerce


Getting Started

The quickest way to get starting using Spree Ember is to install the spree-ember-storefront addon into a new Ember CLI application.

Under the hood, the spree-ember-storefront addon uses:

  • spree-ember-core
  • spree-ember-checkouts
  • Normalize.css
  • Zurb Foundation 5.5

Ember CLI

First - you'll need the Ember CLI. Head over to Getting Started with Ember CLI for instructions.

Once installed, you'll want to spin up a new Ember application.

ember new frontend
cd frontend
ember server

Now open up your browser, and navigate to localhost:4200, and you you should see the default Ember welcome page!

Installing Spree Ember

The spree-ember-storefront package installs it's dependencies automatically, so you can simply use the one line installer:

ember install spree-ember-storefront

This command will copy all of the storefront route & component templates to your application, for easy customization.

Importing the Spree Storefront Router

Now, you'll need to tell Ember where to put the Spree routes.

In router.js:

import Ember from 'ember';
import config from './config/environment';
import spreeRouter from 'spree-ember-storefront/router';

var Router = Ember.Router.extend({
  location: config.locationType
}); {
  spreeRouter(this, config);

export default Router;

Fire it up!

Now start up the ember server again, and you should now see the Spree Ember welcome page at http://localhost:4200! Head to /products, and your application should load products into your Ember app from your Spree server.

Note: If you're not seeing any products or data, double check your Spree server is running on http://localhost:3000.

Next, you'll probably want to customize Spree Ember.