Sample Repository on GitHub

To get started quickly, see the dreamhouse-lwc GitHub repo. This standalone application contains an example DX project with multiple Apex classes, Aura components, custom objects, sample data, and Apex tests.

Cloning this repo creates the directory dreamhouse-lwc. See the repo’s Readme for more information.

Assuming that you’ve already set up Git, use the git clone command to clone the main branch of the repo from the command line.

To use HTTPS:

git clone https://github.com/trailheadapps/dreamhouse-lwc

To use SSH:

git clone git@github.com:trailheadapps/dreamhouse-lwc.git

If you don’t want to use Git, download a .zip file of the repository’s source using Clone, or download on the GitHub website. Unpack the source anywhere on your local file system.

See Use a Sample Repo to Get Started with Salesforce DX for the next steps.

Check out more complex examples in the Sample Gallery.

The Sample Gallery contains sample apps that show what you can build on the Salesforce platform. They’re continuously updated to incorporate the latest features and best practices.

Tip