Salesforce Connector
BILDIT provides an abstraction over Salesforce Commerce Cloud by providing its own connector.
In the reference app this connector is already installed. However if you want to add it in your app run the following command.
yarn add @bildit-platform/bildit-modules
Adding this will set up a module which will have pre-configured Salespoint endpoints which you can then try out.
SFCC provides you with already written
- Saga reducers' actions
- Saga reducers
- Request/Response query or body forms
- API agent
After installations you need to connect SFCC reducers to your own applications reducers. You can connect the reducers as follows.
const rootReducer = combineReducers({// rest of your reducers goes here....stores: require('@bildit-platform/bildit-modules/sfcc/Redux/StoresRedux').reducer,session: require('@bildit-platform/bildit-modules/sfcc/Redux/SessionRedux').reducer,})// you may export your rootReducer here