Salesforce Lightning Web Component – Local development with Salesforce Real-time data
In this post & video to described about the local development for the Lightning web component and access salesforce real-time data using lightning-datatable with apex class and Lightning web component build, run & test it in our Local server.
Prerequisites to Configure Local development for Lightning web component:
https://theblogreaders.com/salesforce-lightning-web-component-local-development-prerequisites-demo/
DEMO:
Video 1:
- Configure Salesforce Org with Visual
> SFDX: Create Project
> SFDX: Create Project with Manifest
> SFDX: Authorize an Org
- Configure Lightning Web Component with Local Development Server (LWC dev server)
sfdx plugins:install @salesforce/lwc-dev-server
sfdx plugins:update
sfdx force:lightning:lwc:start
Video 2:
- Salesforce real-time data access using LDS, UI API & Apex Class
Resources:
Trailhead – https://trailhead.salesforce.com/en/content/learn/projects/quick-start-lightning-web-components
Announcing LWC Local Development Beta – https://developer.salesforce.com/blogs/2019/10/announcing-lwc-local-development-beta.html
Local Development (Beta) – https://developer.salesforce.com/tools/vscode/articles/lwc/localdev
GitHub Repo – https://github.com/sakthivelsfdc/lwc/tree/master/force-app/main/default/lwc/lightningDataTable