Salesforce LWC/LWR Portfolio Site Tutorial Part 1: Setup

Поділитися
Вставка
  • Опубліковано 4 жов 2024
  • This is the first video in a series where we build a simple portfolio site on the Salesforce Lightning Web Runtime using custom Lightning Web components.
    In this video I show you how to use Experience Builder and Visual Studio Code to create the Experience Cloud Lightning Web Runtime site and publish the source code to GitHub. This allows us to deploy our site to new Salesforce Scratch Orgs during our development process.
    The final source code for this Experience Cloud Site can be found here on GitHub: github.com/mro...

КОМЕНТАРІ • 25

  • @VijayKumarCreator
    @VijayKumarCreator 4 місяці тому

    Fantastic, Mitch, It's an exceptional tutorial series to begin with LWR sites. thanks.

  • @rmanp6031
    @rmanp6031 5 місяців тому

    Hey Mitch, little late to the party, but I had I believe 20 errors where you had 1 for the AppSwitcher, but I just followed what you did for each error and it was a success. I think I had a lot of Spring24 release stuff that you didn't have in your example. Thanks! These videos are helpful.

    • @ducasimo
      @ducasimo 24 дні тому

      How did you solve it? I encountered a bunch of conflicts, most of them are from report and dash board folder

  • @dharmeshrana7548
    @dharmeshrana7548 5 місяців тому

    Thank you, Thank you, Thank you for this tutorial.

  • @nextclass11
    @nextclass11 Рік тому

    Excellent!!! thanks a lot. I want to learn a lot more about this

  • @hollygerk6416
    @hollygerk6416 2 місяці тому

    This is a little confusing. What would suggest for a beginner? I'm a certified admin with minimal experience and I would like to build a simple portfolio to increase my chances of getting hired. Thank you :)

  • @testtest-c4z
    @testtest-c4z 7 місяців тому +1

    Hello, the video is great, I'm not clear about the difference between LWC and LWR. In the example, is a correct LWC component shown? Is all this delivered with the cms?

    • @mitchroutt
      @mitchroutt  6 місяців тому +1

      Lightning Web Components (LWC) are the HTML/CSS/JavaScript/Apex packages that you create. The Lightning Web Runtime (LWR) is the engine built into Salesforce that serves and runs your Lightning Web Components in Experience Cloud. In this video series, we are writing LWCs that run on LWR. Hopefully that makes sense.

    • @mitchroutt
      @mitchroutt  6 місяців тому

      Also, the Content Management System (CMS) isn't really covered in this video series. The CMS is a way to let your less technical users change the content on your site without having to modify the underlying code.

  • @Snbd26th
    @Snbd26th 11 місяців тому

    This is great! Just wondering, can I also do this without having to create a scratch org? I'd like to use my Developer Edition org directly. I tried adding the "features" in the JSON file but it doesn't work.

    • @mitchroutt
      @mitchroutt  8 місяців тому +1

      I apologize for being super late with my replies. You can absolutely use a regular Developer Edition Org instead. From VSCode, instead of running the command "SFDX: Create a Default Scratch Org", run the command "SFDX: Authorize an Org" and then log into the Developer Edition Org that you want to use.

  • @sanjaymehta4510
    @sanjaymehta4510 Рік тому

    hello sir can u pls tell me how can i make my lwr url public anybody see that without any login authentication

  • @davidsabanci1719
    @davidsabanci1719 Рік тому

    Somehow i could not deploy land create scratch org. Should i really needs for further steps.
    (I stuck 2:27 ) 😅

    • @mitchroutt
      @mitchroutt  8 місяців тому

      I am super late to the party here, but getting tripped up on creating the Scratch Org seems to be a common problem. It is perfectly find to just use a Trailhead Playground or Developer Edition Org for this. First, set up the Org that you want to use and make sure you have the user name and password. Then, from VSCode, instead of running the command "SFDX: Create a Default Scratch Org", run the command "SFDX: Authorize an Org" and then log into the Developer Edition Org that you want to use

  • @aminebouyg3637
    @aminebouyg3637 6 місяців тому

    Thanks a lot, i just keep getting this error when I'm trying to create scratch : The specified org is not a Dev Hub., if there is any help

    • @mitchroutt
      @mitchroutt  6 місяців тому

      I think you just need to enable Dev Hub in the Org that you are currently authorized against. Here are the quick instructions from developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_setup_enable_devhub.htm#:~:text=To%20enable%20Dev%20Hub%20in,box%20and%20select%20Dev%20Hub.
      1. Log in as System Administrator to your production, Developer Edition, or trial org.
      2. From Setup, enter Dev Hub in the Quick Find box and select Dev Hub.
      If you don't see Dev Hub in the Setup menu, make sure that your org is one of the supported editions.
      3. To enable Dev Hub, click Enable.
      After you enable Dev Hub, you can’t disable it.

    • @aminebouyg3637
      @aminebouyg3637 6 місяців тому

      @@mitchroutt thanks a lot man, i'll try it👌

  • @venkatm5790
    @venkatm5790 Рік тому

    Hi , LWR site series is really very useful. I want to add app launcher to LWR site navigation menu. Is it possible ?

    • @mitchroutt
      @mitchroutt  8 місяців тому

      I think that would be pretty tricky, since this portfolio site is meant for unauthenticated guest user access. If you had a site where users were logging in, then you could maybe do something like this. Although at that point, I would wonder why you don't just make an App in Salesforce and have licensed users log in like normal. I might not understand the question.

  • @umamaheshwarreddypondugula7843
    @umamaheshwarreddypondugula7843 7 місяців тому

    Hi @mitchRoutt,
    when I tried the command "sf open org" from VS Code, it did not open the dev org login browser, and I got below error in the VS Code terminal, it used to work. any idea what could be the issue?
    "C:\Users\umrpo\AppData\Local\sfdx\client\bin\..\7.209.6-8ba3197\bin\sf.cmd"' is not recognized as an internal or external command, operable program or batch file.

    • @mitchroutt
      @mitchroutt  6 місяців тому

      I know this is way late, but it looks like you don't have the Salesforce CLI in your system path. I would recommend re-installing the Salesforce CLI.

  • @suneelkumar-q5u
    @suneelkumar-q5u Рік тому

    Hi @mitchroutt,
    sf project deploy start command
    getting this error : Error site/Portfolio.sfdc_cms brandingSet/Build_Your_Own_LWR For Branding Set: talon-template-byo:branding, property: ErrorBackgroundColor, the property value: {2}, , could not find Branding Set Property Definition | Error site/Portfolio 1.sfdc_cms branding Set/Build_Your_Own_LWR For Branding Set: talon-template-byo:branding, property: ErrorBackgroundColor, the property value: {2}, , could not find Branding Set Property Definition
    could you please help me?

    • @mitchroutt
      @mitchroutt  Рік тому

      Hmm. I have not seen that error before. Could you put your code up on GitHub and send me a link? It is tough to know what went wrong without the code.

    • @suneelkumar-q5u
      @suneelkumar-q5u Рік тому

      ​@@mitchroutt I created a new project and now it is working. Thank you👍