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:
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? Type the password of your Salesforce org What is your salesforce endpoint? By default, it is https://login.salesforce.com. 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 local host 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 ecommerce 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.