For some time we’ve been wondering what would it be like to integrate Ember.js with a Spree Ecommerce application. In this post we’ll see how to create a simple Ember.js application that serves data from a Spree API endpoint.
In this post we’ll take a look at:
* choosing the right development tools for your app
* how to setup your Spree application to serve an Ember application
* a quick way to authenticate a Spree user to use the Ember application
* understanding the differences between Spree’s and Ember Data’s APIs
* coding a basic Ember application to show products
You can follow what’s happening in the blogbpost by playing around with the fully working example: spree-ember-example. It’s built with Spree 2.1 but both 2.0 and 1.3 should work flawlessly.
WARNING: this post is quite long as we’ll have to cover code for each of the steps needed. If you don’t like long posts, refer to the demo application linked above to get a full picture faster.
Your new post is loading...