After cloning a template, the first task is to run the npm install command. The npm install command installs all the dependencies under the package.json folder. One of the dependencies under the package.json folder is the apttus/ecommerce library that bundles all the components library and the data access layers. The npm install process sets up the Digital Commerce SDK with your Salesforce instance.

Pre-requisite: You must ensure that the following tasks are completed before you run the npm install command:

  • Install required packages on your Salesforce org 
  • Set up a community, if not already done
  • Create a custom field on Accounts for Price List
  • Create a Store object and a store record within it
  • Ensure you have angular-CLI installed on your local machine in order to use the templates

To install the cloned template

  1. Open the code of the template.
  2. Type npm install and press Enter on your keyboard. The system prompts with a series of questions for your templates to get connected with a Salesforce org. Type your answers as described in the table below:


    Would you like to connect with a Salesforce instance?

    Which angular project are you using?Type the name of your project. For example, getting started
    What is your salesforce administrator name?Type the username of your Salesforce org
    What is your salesforce password with the security token?Type the password of your Salesforce org
    What is your salesforce endpoint?By default, it is You can change it to your sandbox or leave it as is.
    Would you like to add a CORS entry to your org to allow localhost development?Yes. This adds a white list for localhost so you can run development in your local machine instead of just the Salesforce instance.
    Which domain will be used for API calls?Type the domain URL.
    Which community are you using?Type the name of the community.
    Would you like to deploy the standard Digital Commerce permission set? (Y/n)Yes. This deploys the permission set that is installed with your managed package.

Your reference template along with all dependencies is now installed on your Salesforce org.