Skip to content

Cloned DreamHouse sample application for trailhead training

License

Notifications You must be signed in to change notification settings

Gurenax/sfdx-dreamhouse

Repository files navigation

DreamHouse Sample Application

DreamHouse is a sample application that demonstrates the unique value proposition of the Salesforce App Cloud for building Employee Productivity and Customer Engagement apps.


Salesforce DX Setup

Initial Setup

  1. Installed Salesforce DX CLI for MacOS
https://sfdc.co/sfdx_cli_osx
  1. Ensure the CLI is using the latest version
sfdx update
  1. Created a DevHub org from
https://developer.salesforce.com/promotions/orgs/dx-signup
  1. Logged in to DevHub org
sfdx force:auth:web:login -d -a DevHub
  1. Git cloned the following repo
git clone https://github.com/Gurenax/sfdx-dreamhouse
cd sfdx-dreamhouse
  1. Created a new branch
git checkout -b my_branch
  1. Looked into help for commands
sfdx force --help
  1. Looked into the scratch org config file
cat config/project-scratch-def.json
  1. Created a scratch org
sfdx force:org:create -s -f config/project-scratch-def.json -a "default scratch org"
  1. Opened the scratcg org to a browser
sfdx force:org:open

Push Source Metadata to Scratch Org

  1. Pushed all the local source into the scratch org
sfdx force:source:push

Assign a Permission Set to the DreamHouse App

  1. Assigned that permset using the CLI
sfdx force:user:permset:assign -n Dreamhouse

Import Test Data

  1. Used the CLI and the SObject Tree API to import this Data into the org
sfdx force:data:tree:import --plan data/sample-data-plan.json

Test App in the Scratch Org

sfdx force:org:open

If you need to open the DevHub Org instead

sfdx force:org:open -u DevHub

Check out the DreamHouse microsite for more information.

Deploy

Salesforce DX Documentation Links

Salesforce DX Setup Guide

Salesforce DX Developer Guide

Salesforce CLI Command Reference

Visual Studio Code Extension Pack for Salesforce DX

Force.com IDE 2 Developer Guide

Installation Instructions

  1. Install Salesforce DX. Enable the Dev Hub in your org or sign up for a Dev Hub trial org and install the Salesforce DX CLI. Follow the instructions in the Salesforce DX Setup Guide or in the App Development with Salesforce DX Trailhead module.

  2. Clone the dreamhouse-sfdx repository:

    git clone https://github.com/dreamhouseapp/dreamhouse-sfdx
    cd dreamhouse-sfdx
    
  3. Create a scratch org and provide it with an alias (dh):

    sfdx force:org:create -s -f config/project-scratch-def.json -a dh
    
  4. Push the app to your scratch org:

    sfdx force:source:push
    
  5. Assign the dreamhouse permission set to the default user:

    sfdx force:user:permset:assign -n dreamhouse
    
  6. Open the scratch org:

    sfdx force:org:open
    
  7. In Setup, type theme in the quick find box. Click Themes and Branding, and flip the toggle to hide background images in Lightning Experience.

  8. Select DreamHouse in the App Launcher

  9. Click the Data Import tab and click Initialize Sample Data

About

Cloned DreamHouse sample application for trailhead training

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published