Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (24 sloc) 2.81 KB
id title
storefront-intro
Storefront UI Development Overview

Reaction Commerce is a headless commerce platform, which means that its focus is on providing a top-notch server API rather than on UI. But this doesn't mean you're completely on your own.

There is a built-in user interface for shop operators and admins, which supports plugins and should work well for many shops. We refer to this as the "operator UI". If you prefer, you can build your own operator UI or adapt one that you already have.

For your storefront — your public-facing website or app on which consumers browse your catalog, manage their account, and purchase items — Reaction assumes that you will build your own UI to meet your needs. For those who want to get going fast, Reaction plans to provide example storefronts that you can use as starting points. These are UI projects that we expect you to fork and modify. Currently, there is one such project, the example web storefront.

However, if you already have a storefront UI or if the example projects are not to your liking, then you can connect any UI of your choosing to the Reaction API. If this describes your organization, then this guide is for you. It will walk you through everything that is necessary to build or adapt a storefront to use Reaction for its data.

In general, you'll want to do the following tasks in roughly this order:

  1. Add and configure Apollo Client
  2. Build a product listing page
  3. Build a product detail page
  4. Build navigation menus
  5. Add a way to add an item to a cart
  6. Build a cart page
  7. Implement cart modification
  8. Build a checkout page
  9. Build an order view page
  10. Add ability to log in
  11. Build an account management page

This guide will walk you through how to complete these tasks in a general, framework-agnostic way. While we don't care which UI framework you use, which component libraries you use, or how you manage app state, we do have two recommendations that will save you time.

  • Use Apollo Client to interact with the Reaction GraphQL API when possible.
  • Use React storefront components from the Reaction Design System wherever you can. In many cases, these components do much of the heavy lifting for you, encapsulating logic that would require much effort to implement correctly without them.

Start Building

You can’t perform that action at this time.