Skip to content

To calculate Body Mass Index by providing inputs as height and weight. (Lightning Web Component).

Notifications You must be signed in to change notification settings

sunil-sfdc/BMI-Calculator

Repository files navigation

BMI-Calculator

You can easily calculate Body Mass Index (Lightning Web Component). Here I have created a function called bmiCalculatorFunction.js and it can be used in multiple Lightning Web Components to calculate BMI.

Download The Components

In this module, you use Visual Studio Code (VS Code) to edit code. Open VS Code and clone this GitHub repo.

  1. In VS Code, open the Command Palette by pressing Ctrl+Shift+P (Windows) or Cmd+Shift+P (macOS).
  2. Enter git.
  3. Select Git: Clone.
  4. Enter https://github.com/sunil-sfdc/BMI-Calculator.git and press Enter.
  5. Select Desktop then click Select Repository Location.

Create DX Project

  1. Open the Command Palette
  2. Enter sfdx.
  3. Select SFDX: Create Project.
  4. Select Standard.
  5. Enter BMI Calculator as the project name.
  6. Press Enter.
  7. Select Desktop for folder to store the project.
  8. Click Create Project.
  9. Click Overwrite.

Authorize Your Trailhead Playground

  1. Open the Command Palette
  2. Enter sfdx.
  3. Select SFDX: Authorize an Org.
  4. Press Enter to accept the Project Default login URL option.
  5. Press Enter to accept the default alias. This opens the Salesforce login in a separate browser window.
  6. Log in using your Trailhead Playground credentials. If prompted to allow access, click Allow.

Deploy to Playground

  1. Right-click the default folder under force-app/main.
  2. Click SFDX: Deploy Source to Org.

About

To calculate Body Mass Index by providing inputs as height and weight. (Lightning Web Component).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published