Skip to content

Bolt embedded plugin for Salesforce Commerce Cloud SFRA

Notifications You must be signed in to change notification settings

BoltApp/bolt-demandware-embedded

Repository files navigation

Bolt SFRA Cartridges for Embedded Checkout

int_bolt_sfra_embedded: Storefront Reference Architecture (SFRA)

Getting Started

  1. Clone this repository.
  2. From the top-level /bolt-demandware-embedded, run npm install to install all the package dependencies.
  3. From the top-level /bolt-demandware-embedded, edit the paths.base in package.json. This property should be the relative path to the local directory of the Storefront Reference Architecture repository. For example:
"paths": {
    "base": "../storefront-reference-architecture/cartridges/app_storefront_base/"
  }
  1. Create dw.json file in the root of the project:
{
  "hostname": "your-sandbox-hostname.demandware.net",
  "username": "yourlogin",
  "password": "yourpwd",
  "code-version": "version_to_upload_to"
}
  1. From the top-level /bolt-demandware-embedded, run npm run build
  2. From the top-level /bolt-demandware-embedded, run npm run upload:all

Note: if you upload the bolt cartridge with a new code-version, you will need to re-run step 5 and 6.

NPM scripts

Use the provided NPM scripts to compile and upload changes to your Sandbox.

Upload all cartridges to SFCC instance

npm run upload:all

Linting your code

npm run lint - Execute linting for all JavaScript and SCSS files in the project. This should be run before committing code.

#Testing npm run test:unit - Run the unit tests

Locale support

supported locales: en-US, en-CA, fr-CA

For more information: https://help.bolt.com/products/embedded/sfcc-embedded/