This repository has a set of useful reference implementations for the B2B Lightning projects. It is structured in 2 parts: examples and sfdx.
The examples include metadata API sources that can help to setup a B2B project and provide examples for a quick start with this project. They can be deployed as described in the Salesforce documentation here. The examples contain 3 folders:
- checkout covers information and instructions on how to deploy each of the components required to build a fully working checkout for a B2B Store. Flows are setup here. Mock integrations are provided here. Notifications are provided here.
- diagnostic sets up a diagnostic workflow that allows you to debug issues that could occur during checkout of your store.
- users covers how to deploy an org and buyer user profile with the settings required. Instructions on how to deploy a buyer profile for your B2B store here. Sharing settings that need to be enabled are covered here.
The sfdx section is aimed to the developers who use the SFDX environment. There are no source files in this section, they will be converted from the metadata format (in "examples") to the SFDX format by running the script in the sfdx directory. After the conversion to the SFDX format it is the developer's responsibility to maintain the files and continue working with them in the new SFDX project.