- Set up your environment. Follow the steps in the Quick Start: Lightning Web Components Trailhead project. The steps include:
- Enable Dev Hub in your Trailhead Playground
- Install Salesforce CLI
- Install Visual Studio Code
- Install the Visual Studio Code Salesforce extensions, including the Lightning Web Components extension
- If you haven't already done so, authenticate with your hub org and provide it with an alias (myhuborg in the command below):
sfdx force:auth:web:login -d -a myhuborg
- Clone the repository:
git clone https://github.com/seanrussell/budgetapp.git
cd budgetapp
- Create a scratch org:
sfdx force:org:create -s -f config/project-scratch-def.json
- Push the app to your scratch org:
sfdx force:source:push
- Assign the Budget App Administrator permission set to the default user:
sfdx force:user:permset:assign -n Budget_App_Administrator
- Load sample data:
sfdx force:data:tree:import --plan ./data/sample-data.json
- Open the scratch org:
sfdx force:org:open
- In App Launcher, select the Budgetapp app.