Coder Social home page Coder Social logo

lwcgettingstarted's Introduction

Getting Started with LWC

This is a sample application that accompanies the Pluralsight course, Getting Started with Salesforce Lightning Web Components . It is used to demonstrate how to get started building applications with Lightning web components and SFDX tools.

It centers around creating a solution for a fictional outdoor provider named Carved Rock Fitness. The solution is designed to use Lightning web components, allowing a mobile or desktop user to search for products.

The final version will be a Lightning page containing multiple components used to search for products and display a list of product tiles. Users can select one of the tiles to see more product detail and access a link for editing the product.

NOTE If you encounter problems with the code, please consider adding an issue to this repo

Course Preview

Course Preview Video

carved-rock-logo-yellow-reduced

Table of Contents

Installing final version of LWCGettingStarted using a scratch org

  1. Set up your environment. You can follow the steps demonstrated in the Pluralsight Module, Creating Components with Salesforce Developer Experience (SFDX) Tools

  2. Select the Explorer icon in the left toolbar of Visual Studio Code to clone the repository:

  3. If you haven't already done so, use Terminal to authorize your dev hub org and provide it with an alias (myDevHub in the command below):

    sfdx auth:web:login -d -a myDevHub
    
  4. Create a scratch org and provide it with an alias (GettingStartedLWC in the command below):

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

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

    sfdx force:user:permset:assign -n GettingStartedLWC
    
  7. Import sample data:

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

    sfdx force:org:open
    

Concepts covered in course

This course offers modules that cover the following:

  1. Building Your First Lightning Web Component (LWC)

    • Define LWC and list the benefits it offers
    • Describe the four pillars of web components
    • Create a simple app in webcomponents.dev
    • Understand the basic LWC structure
    • Review the different ways to display components in Salesforce
  2. Creating Components with Salesforce Developer Experience (SFDX) Tools

    • Contrast the source-driven development model with the org–based model
    • Demonstrate how to get setup with SFDX
    • Use VS Code to create a lightning web component
    • Explain how to work with base lightning components
    • Explain how useful the SLDS can be for styling Salesforce components
    • Explain how the @api decorator can be used to expose public properties
    • Create a scratch org and deploy a component to the org
    • Use Lightning App Builder to create an app
  3. Working with Custom Events and Debugging

    • List different ways to communicate between components
    • Create a simple nested child component
    • Demonstrate how getter and setter functions work
    • Explain how to create custom events and pass data
    • Develop code used to create a custom event
    • Demonstrate how to use the Chrome debugger
  4. Working with Lightning Data Service

    • Describe the challenges of working with Salesforce data across multiple lightning web components
    • List the different ways there are to work with Salesforce Data
    • Demonstrate how to use the CLI to load data into Salesforce
    • Demonstrate how to use SOQL Builder to query data
    • Develop code to read data with Lightning Data Service wire adapters
    • Create simple APEX code to execute a SOQL query
    • Develop code that uses a Record Form Lightning Web Component
    • Display formatted errors to the end user
  5. Working with Lightning Message Service and NavigationMixin

    • Define the Lightning Message Service
    • Create a Lightning Message Channel file
    • Add code to send data from the publisher component
    • Add code to the subscriber component to receive data
    • Explain how to work with NavigationMixin
    • Add code to handle navigating to a data record

lwcgettingstarted's People

Contributors

saramorgan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lwcgettingstarted's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.