This application is designed to run on the Salesforce Platform.
-
Set up your environment. Follow the steps in the Quick Start: Lightning Web Components Trailhead project. The steps include:
- Enable Dev Hub in your Trailhead Playground
- Install Salesforce CLI
- Install Visual Studio Code
- Install the Visual Studio Code Salesforce extensions, including the Lightning Web Components extension
-
If you haven't already done so, authorize your hub org and provide it with an alias (myhuborg in the command below):
sf org login web --set-default-dev-hub --alias myhuborg
-
Clone the duplicatehandling repository:
git clone https://github.com/dschach/duplicatehandling cd duplicatehandling
-
Run the npm script to create a scratch org, assign the permission set, and open the org
npm run scratchorg
That's it!
-
Set up your environment. Follow the steps in the Quick Start: Lightning Web Components Trailhead project. The steps include:
- Enable Dev Hub in your Trailhead Playground
- Install Salesforce CLI
- Install Visual Studio Code
- Install the Visual Studio Code Salesforce extensions, including the Lightning Web Components extension
-
If you haven't already done so, authorize your hub org and provide it with an alias (myhuborg in the command below):
sf org login web --set-default-dev-hub --alias myhuborg
-
Clone the duplicatehandling repository:
git clone https://github.com/dschach/duplicatehandling cd duplicatehandling
-
Create a scratch org and provide it with an alias (duplicatehandling in the command below):
sf org create scratch --definition-file config/project-scratch-def.json --durationdays 10 --alias duplicatehandling --set-default
-
Push the app to your scratch org:
sf project deploy start
-
Assign the Duplicates Handler permission set to the default user:
sf org assign permset --name Duplicates_Handler
-
Open the scratch org:
sf org open
Follow this set of instructions if you want to deploy the app to a more permanent environment than a Scratch org. This includes non source-tracked orgs such as a free Developer Edition Org or a Trailhead Playground.
Make sure to start from a brand-new environment to avoid conflicts with previous work you may have done.
-
Clone this repository:
git clone https://github.com/dschach/duplicatehandling cd duplicatehandling
-
Authorize your Trailhead Playground or Developer org and provide it with an alias (mydevorg in the command below):
sf org login web --set-default-dev-hub --alias mydevorg
-
Run this command in a terminal to deploy the app.
sf project deploy start --source-dir force-app
-
Assign the
Duplicates_Handler
permission set to the default user.sf org assign permset --name Duplicates_Handler
-
If your org isn't already open, open it now:
sf org open --target-org mydevorg