Shopify-Partners / shop-pay-sfcc-connector

MIT License
2 stars 0 forks source link

Shop Pay Salesforce Commerce Cloud Cartridge

This link cartridge is based off of storefront-reference-architecture (SFRA) v6.3.0

Getting Started

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.

Install dependencies

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

Note the install may take a few minutes

Local Development

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

Testing

The following frameworks and packages are used for testing

Prerequisites

.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

Note - Integration and E2E tests require a live and fully configured SFRA Sandbox

Testing Instructions

Change into the test directory

Run npm install