/dreamhouse-sfdx

DreamHouse sample application

Primary LanguageApex

DreamHouse Sample Application

Deploy

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

Check out the DreamHouse microsite for more information.

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

Optional instruction to enable visual search in the Property Finder and Property Explorer pages:

  1. Get an Einstein Platform Services account. Follow the instructions here.

  2. In Salesforce, click the Files tab and upload einstein_platform.pem.

  3. In Setup, type Custom in the Quick Find box and click the Custom Settings link.

  4. Click the first New Button (at the top of the screen).

  5. For Einstein Vision Email, specify the email address you used when you created your Einstein Platform Services account (step 1), and click Save.

  6. In the DreamHouse app, click the Einstein Vision tab.

  7. Click the Create Dataset button.

  8. In the houses tile, click the Train button, the click the Models tab.

  9. Click the Refresh Models button until the Progress column indicates 100%.

  10. Copy the Model Id in your clipboard.

  11. Click the Property Finder Tab, click the gear icon (upper right corner), and click Edit Page. Click the Filters component and paste the Model Id in the Einstein Model Id field in the right sidebar. Save the page.

  12. Repeat the last step for the Property Explorer page.

You can now search houses by uploading (or dropping) a picture in the visual search box that is part of the Filters component on the Property Finder and Property Explorer pages.