This repository contains the Dreamhouse application provided by Salesforce which will be used as the foundation for the course.
The Dreamhouse app contains real-estate objects and data and the course will be centered around improving the interface.
Credit: This repository was cloned and modified from https://github.com/garazi/lwc-workshop-master
- Salesforce CLI
sfdx --versionto check if installed
- Node (This is optional but HIGHLY recommended to ensure that the code formatter
prettierworks in your codebase)- run
npm --versionto see if this is installed
- run
- VSCode (This is the recommended IDE, but you can use another IDE if you prefer as long as you are comfortable working with SFDX)
- Developer Hub Org
- This can be any developer org, but you will need to enable the developer hub within the setup menu.
- Optional Install the Shane SFDX Plugin
- Using a CLI, navigate to where you want the folder for the source created, and execute the following command:
- using SSH (preferred) -
git clone git@github.com:atginfo/atg-lwc-training-master.git lwc-workshop - or using HTTPS (you will have to authenticate frequently) -
git clone https://github.com/atginfo/atg-lwc-training-master.git lwc-workshop
- using SSH (preferred) -
- Using the CLI, navigate into the newly created folder
lwc-workshop. - Run
npm installto install the project dependencies - Log into your devhub with the following (Your devhub org will use the alias
lwcDevHub):sfdx force:auth:web:login -a lwcDevHub- Note: This can be any developer org, but you first must enable Dev Hub in the setup menu.
- Close the browser window once you have authenticated.
- Run the following command (feel free to change
lwc-workshopif you want):sfdx force:org:create -f config/project-scratch-def.json -s -v lwcDevHub -a lwc-workshop -d 30 -w 10-v lwcDevHubsets the devhub org to use-a lwc-workshopsets the name of the scratch org-d 30keeps the org valid for 30 days-w 10waits up to 10 minutes for the operation to complete
- Once the scratch org has been created, execute the following commands:
sfdx force:org:open- or you can use VSCodeSFDX: Open default orgsfdx force:source:pullsfdx force:source:pushsfdx force:user:permset:assign -n All_Access
- If you installed the optional shane sfdx plugin then you can run
sfdx shane:user:password:set -l User -g User -p sfdx1234 --jsonto set your password tosfdx1234for easier login to your scratch org using tools likeFuseKit.
- In the org, open the App Launcher and choose Dreamhouse Lightning.
- Don't see it? Make sure the
All_Accesspermission set is assigned to your user.
- Don't see it? Make sure the
- Choose the Data Import tab, and click the Initialize Sample Data button.
- Click on the Properties tab to confirm that you have a list of properties generated from the step above.