Prerequisite of LWC

Setup LWC in 3 steps

Now starting with Part 2 of our LWC tutorials. It is the time to setup and use the power of our components, we got the responsibility to complete 3 steps which are as follows:

Please complete part 1 : What are Lightning Web Components?

1. Salesforce Org

( It manages the project over the cloud )

* Login / Signup for Org

2. Salesforce CLI

( It manages the project on a local machine )

* Install on local machine

3. Visual Studio Code

( It provides a place to write code on a local machine)

* Install on local machine

# Salesforce Org

  1. Log in to your existing org (or sign up for new org using https://developer.salesforce.com/).
  2. Brand your URL using My Domain (From Setup, enter My Domain in the Quick Find box).
  3. Complete your domain creation and deploy to users.
  4. From Setup, enter Dev Hub in the Quick Find box.
  5. Enable Dev Hub.

# Salesforce CLI

1.    Install the CLI using the links below.

Operating System Link to Download
macOS https://sfdc.co/sfdx_cli_osx
Windows 32-bit https://sfdc.co/sfdx_cli_win
Windows 64-bit https://sfdc.co/sfdx_cli_win64
Debian/Ubuntu 64 https://sfdc.co/sfdx_cli_linux Download the archive from one of the URLs in the manifest, extract the archive, then run the ./install script.
Debian/Ubuntu x86 https://sfdc.co/sfdx_cli_linux_x86 Download the archive from one of the URLs in the manifest, extract the archive, then run the ./install script.

2. To make sure the CLI is installed successfully, enter ‘sfdx’ in the terminal/command prompt.

# Visual Studio Code

1. Download and Install the latest version of Visual Studio Code for your operating system.

2. Launch Visual Studio Code

3. On the left side of the toolbar, Click the extension icon.

4. Search for Salesforce Extension Pack and click Install. If you already have it installed, then you just need to click on the Reload button.

# Create Lightning web components

1. In Visual Studio code, open the Command Palette by pressing Ctrl+Shift+P on Windows or Cmd+Shift+P on macOS.

 

2. Enter sfdx to filter for commands provided by the Salesforce Extensions.

Congratulations on completing all the prerequisites. Uncle Ben must be proud of you.

Moving to Part 3 of our LWC tutorials. Let’s say Hello to the World.

Till then,
Thanks for reading! & PEACE

(Visited 2,294 times, 1 visits today)

Leave a Reply