-
Direct deployment to an org: Quickest option to install this unmanaged code into your org
-
Installing the app using a Scratch Org: This is the recommended installation option. Use this option if you are a developer who wants to experience the app and the code.
-
Installing the app using a Developer Edition Org or a Trailhead Playground: Useful when tackling Trailhead Badges or if you want the app deployed to a more permanent environment than a Scratch org.
-
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
-
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 Survey Force repository:
git clone https://github.com/salesforcelabs/survey-force cd survey-force
-
Create a scratch org and provide it with an alias (surveyforce in the command below):
sf org create scratch --set-default --definition-file config/project-scratch-def.json --alias surveyforce
-
Push the app to your scratch org:
sf project deploy start
-
Assign the
Survey_Force_SuperAdmin
permission set to the admin user.sf org assign permset --name Survey_Force_SuperAdmin
-
Open the scratch org:
sf org open
-
In App Launcher, click View All then select the Survey Force app.
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.
-
Authorize your Sandbox, Trailhead Playground, or Developer org and provide it with an alias (mysurveyorg in the command below):
sf org login web --set-default-dev-hub --alias mysurveyorg
-
Clone this repository:
git clone https://github.com/salesforcelabs/survey-force cd survey-force
-
If you are setting up a Developer Edition: go to Setup, under My Domain, register a My Domain.
-
Run this command in a terminal to deploy the app.
sf project deploy start --target-org mysurveyorg --source-dir force-app
-
If your org isn't already open, open it now:
sf org open --target-org mysurveyorg
-
Assign the
Survey_Force_SuperAdmin
permission set to the admin user.sf org assign permset --name Survey_Force_SuperAdmin
-
In App Launcher, select the Survey Force app.