Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 1.83 KB

README.md

File metadata and controls

64 lines (42 loc) · 1.83 KB

Sample App to Manage your garden's plants!

CI Workflowcodecov

Installing using a Scratch Org

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

    • Enable Dev Hub in your Trailhead Playground
    • Install 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, authorize your hub org and provide it with an alias (myhuborg in the command below):

    sf org login web -d -a myhuborg
    
  3. Clone this repository:

    git clone https://github.com/albarivas/plants
    cd plants
    
  4. Create a scratch org and provide it with an alias (plants in the command below):

    sf org create scratch -d -f config/project-scratch-def.json -a plants
    
  5. Push the app to your scratch org:

    sf project deploy start
    
    
  6. Assign the Plants_App permission set to the default user:

    sf org assign permset -n Plants_App
    
  7. Import sample data:

    sf data tree import -p data/data-plan.json
    
  8. Open the scratch org:

    sf org open
    
  9. Select custom theme: setup --> Themes and Branding --> Plants App --> Activate

  10. Create a custom notification type: setup --> Custom Notifications --> New Custom Notification Type

  • Name: Temperature Alert
  • Developer Name: Temperature_Alert
  • Make it available for Desktop and Mobile