On Github sofa / building-web-apps-with-sofa-and-couchcommerce-slides
By @cburgdorf and @PascalPrecht
Sofa is an SDK that makes building e-commerce web apps for the CouchCommerce platform a breeze.
couchService
.getProducts('category')
.then(function (products) {
// do something with products
});
var item = basketService
.addItem(product, 1, variant);
basketService.increase(item, 5);
basketService.decrease(item, 5);
basketService.exists(product, variant);
basketService.find(predicate);
basketService.getSummary();
✓ automagically persistence
searchService
.search(searchTerm, options)
.then(function (result) {
// do something with result
});
✓ configurable throttleing
✓ no out of order responses
checkoutService
.getSupportedCheckoutMethods(...)
.then(function (methods) {
// do something with methods
});
checkoutService
.checkoutWithCouchCommerce(...)
.then(function (token) {
// do something with token
});