Skip to content

thatherahere/Sample-Accounts-LWC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample-Accounts-LWC Lightning Web Component

Sample Lightning Web component showing uses of Lightning Data Table, Displaying Lookup fields data in Data Table, Lightning Record Form, Lightning Map and how to call an apex class to get list of accounts.

Demo

Installing using Salesforce DX

  1. Set up your environment. Follow the steps in the Quick Start: Lightning Web Components Trailhead project. The steps include:

    • Sign up for a Spring '19 pre-release org and enable Dev Hub
    • Install the pre-release version of the Salesforce CLI
    • Install Visual Studio Code
    • Install the Visual Studio Code Salesforce extensions, including the Lightning Web Components extension
  2. If you haven't already done so, authenticate with your Spring '19 hub org and provide it with an alias (devhub):

    sfdx force:auth:web:login -d -a devhub
    
  3. Clone the repository:

    git clone https://github.com/thatherahere/Sample-Accounts-LWC.git
    cd Sample-Accounts-LWC
    
  4. Create a scratch org and provide it with an alias (lwcdemo):

    sfdx force:org:create -s -f config/project-scratch-def.json -a lwcdemo
    
  5. Push the app to your scratch org:

    sfdx force:source:push
    
  6. Assign the Custom_Permissions permission set to the default user:

    sfdx force:user:permset:assign -n Custom_Permissions
    
  7. Load sample account records:

    sfdx force:data:tree:import --plan ./data/data-plan.json
    
  8. Open the scratch org:

    sfdx force:org:open
    
  9. In App Launcher, select the Sample LWC tab.

About

Sample Lightning Web component showing uses of Lightning Data Table, Displaying Lookup fields data in Data Table, Lightning Record Form, Lightning Map and how to call an apex class to get list of accounts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors