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
Open the code of the template.
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:
Question
Answer
Would you like to connect with a Salesforce instance?
Yes
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?