DreamHouse is a sample application that demonstrates the unique value proposition of the Salesforce App Cloud for building Employee Productivity and Customer Engagement apps.
- Installed Salesforce DX CLI for MacOS
https://sfdc.co/sfdx_cli_osx
- Ensure the CLI is using the latest version
sfdx update
- Created a DevHub org from
https://developer.salesforce.com/promotions/orgs/dx-signup
- Logged in to DevHub org
sfdx force:auth:web:login -d -a DevHub
- Git cloned the following repo
git clone https://github.com/Gurenax/sfdx-dreamhouse
cd sfdx-dreamhouse
- Created a new branch
git checkout -b my_branch
- Looked into help for commands
sfdx force --help
- Looked into the scratch org config file
cat config/project-scratch-def.json
- Created a scratch org
sfdx force:org:create -s -f config/project-scratch-def.json -a "default scratch org"
- Opened the scratcg org to a browser
sfdx force:org:open
- Pushed all the local source into the scratch org
sfdx force:source:push
- Assigned that permset using the CLI
sfdx force:user:permset:assign -n Dreamhouse
- 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
sfdx force:org:open
sfdx force:org:open -u DevHub
Check out the DreamHouse microsite for more information.
Salesforce CLI Command Reference
Visual Studio Code Extension Pack for Salesforce DX
Force.com IDE 2 Developer Guide
-
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.
-
Clone the dreamhouse-sfdx repository:
git clone https://github.com/dreamhouseapp/dreamhouse-sfdx cd dreamhouse-sfdx
-
Create a scratch org and provide it with an alias (dh):
sfdx force:org:create -s -f config/project-scratch-def.json -a dh
-
Push the app to your scratch org:
sfdx force:source:push
-
Assign the dreamhouse permission set to the default user:
sfdx force:user:permset:assign -n dreamhouse
-
Open the scratch org:
sfdx force:org:open
-
In Setup, type theme in the quick find box. Click Themes and Branding, and flip the toggle to hide background images in Lightning Experience.
-
Select DreamHouse in the App Launcher
-
Click the Data Import tab and click Initialize Sample Data