Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 1.04 KB

README.md

File metadata and controls

15 lines (10 loc) · 1.04 KB

@daffodil/category

Building and maintaining a model and code for an ecommerce store is complex and mentally taxing. @daffodil/category provides clear interfaces, models, and factories for the frontend of an ecommerce store so that you don't have to.

The category module manages the graphQL calls, state, selectors, and models for single category calls. Requests for a category should be made with a DaffCategoryLoad(id) action through the DaffCategoryFacade. Selection of the retrieved category and its loading state can also be done through the DaffCategoryFacade with the category$ and loading$ attributes.

Right now, the @daffodil/category package supports an in-memory for developing locally and a magento driver.

Installation

npm install @daffodil/category

To use the @daffodil/category with an in-memory-web-api, import the DaffCategoryInMemoryDriverModule.forRoot() into your app.module. To use the @daffodil/category with a magento backend, import the DaffCategoryMagentoDriverModule.forRoot() into your app.module.