Skip to content

Latest commit

 

History

History
105 lines (68 loc) · 3.58 KB

INSTALLATION.md

File metadata and controls

105 lines (68 loc) · 3.58 KB

Survey Force

Table of Contents

Direct deployment to an org

Deploy to Salesforce

Installing the app using a Scratch Org

  1. 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
  2. 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
    
  3. Clone the Survey Force repository:

    git clone https://github.com/salesforcelabs/survey-force
    cd survey-force
    
  4. 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
    
  5. Push the app to your scratch org:

    sf project deploy start
    
  6. Assign the Survey_Force_SuperAdmin permission set to the admin user.

    sf org assign permset --name Survey_Force_SuperAdmin
    
  7. Open the scratch org:

    sf org open
    
  8. In App Launcher, click View All then select the Survey Force app.

Installing the App using a Sandbox, Developer Edition Org, or a Trailhead Playground

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.

  1. 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
    
  2. Clone this repository:

    git clone https://github.com/salesforcelabs/survey-force
    cd survey-force
    
  3. If you are setting up a Developer Edition: go to Setup, under My Domain, register a My Domain.

  4. Run this command in a terminal to deploy the app.

    sf project deploy start --target-org mysurveyorg --source-dir force-app
    
  5. If your org isn't already open, open it now:

    sf org open --target-org mysurveyorg
    
  6. Assign the Survey_Force_SuperAdmin permission set to the admin user.

    sf org assign permset --name Survey_Force_SuperAdmin
    
  7. In App Launcher, select the Survey Force app.