This link cartridge is based off of storefront-reference-architecture (SFRA) v6.3.0
Below are the instructions for working with this repository. For details on the Shop Pay connector reference code contained within, please see the INTEGRATION GUIDE.
This project was built using node v14.21.3
but any version of node 14 will work. Node Version Manager or nvm
is an easy way to use different versions of node
Run following:
npm install && npm run sfra:install
The above will install project dependencies
You can use npm run watch
as you develop in conjunction with the VS Code Prophet Debugger extension
You can view our internal documentation for this cartridge here
The following frameworks and packages are used for testing
SFCC API calls are mocked & stubbed using:
.env
file at the root of this directory with the following variables. See example file
# Storefront URL
BASE_URL=https://<INSTANCE>.commercecloud.salesforce.com/on/demandware.store/Sites-RefArch-Site
# Url for integration tests
SITE_URL=https://<INSTANCE>.commercecloud.salesforce.com/on/demandware.store/Sites-RefArch-Site
Change into the test
directory
Run npm install
Running tests:
npm run test:unit
npm run test:integration
npm run test:ui
npm run test:e2e