Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Building a Real-Time Project with LWC OSS and LWR
Rating: 4.8 out of 5(70 ratings)
577 students

Building a Real-Time Project with LWC OSS and LWR

Master the End-to-End Lead Generation Cycle for Car Company with LWC OSS and LWR
Last updated 7/2023
English
English [Auto],

What you'll learn

  • What is LWC OSS and LWR
  • Build interactive and responsive user interfaces: Learn how to create dynamic and engaging user interfaces using LWC OSS, leveraging its powerful features
  • Will Learn to Build Components & Reusability
  • Setting up Layout Templates
  • Server Side Routing
  • Adding Lightning Design System to project
  • Components communications
  • Animation
  • Setting up Git & GitHub and pushing code to Github
  • Lead Form Creation
  • Sending Email for Customer
  • So much more..

Course content

1 section28 lectures4h 30m total length
  • Introduction1:06

    Begin building a real-time web app with the lightning web components open source framework and lightning web runtime, covering layout templates, routing, styling, reusable components, and Netlify deployment.

  • 1. Project Demo3:47

    Build a real-world Honda CR-V web app using Salesforce Lightning Web Components (LWC) OSS and LWR, enabling variant and color selection, price view, lead capture, and automated confirmation emails.

  • 2. Fundamentals5:04
  • 3. Prerequisites5:07

    Identify prerequisites for building a real-time lwc oss and lwr project, including chrome, visual studio code, git and github, nodejs and npm, salesforce developer account, and javascript and css basics.

  • 4. Project Setup6:08

    Set up a LWC OSS and LWR project by initializing with npm init lwr, installing yarn, and running the dev server to view hello champion on localhost:3000.

  • 5. Folder Structure6:25

    Explore the folder structure of a real-time LWC project, starting with package.json and LWR config json. See how assets, aliases, and root routes map to modules and components.

  • 6. Layout Templates9:37

    Learn how layout templates in LWR wrap components and assets, configure a layouts folder, and wire body and LWR resources context objects to render pages with CSS and favicon.

  • $assetsDir Quick fix for windows0:17
  • 7. Routing12:25
  • 8. Adding Salesforce Lightning Design System16:44

    integrate the Salesforce Lightning Design System into your project using approaches: CDN, copying the css into assets, or installing the npm package and copying assets, with synthetic shadow dom enabled.

  • 9. Navbar Creation13:14

    Create a navbar component for a LWC OSS and LWR project with a logo on the left and a build page link on the right, and apply responsive grid styling.

  • 10. Home Page Design17:43

    Design and implement a responsive home page for a real-time LWC OSS and LWR project, including headings, an image, and a grid with three sections of five items.

  • 11. Car Details Component24:43
  • 12. Range Selection Component24:57

    Develop a range selection component in a real-time project with lwc oss and lwr, rendering radio options from a variants array and dispatching the selected record to the parent.

  • 13. Color Selection Component23:24

    Build a color selection component in a real-time lwc oss and lwr project. Implement a parent-driven color list with four options and dynamic radio styling to reflect selection.

  • 14. Price Footer Component14:20

    build a dynamic price footer component for lwc oss and lwr, embed it in the price page, and format the price as usd with zero decimals.

  • 15. Components Communication13:33

    Master component communication in a real-time LWC OSS and LWR project by syncing selected variant, color, and price to update the detail card image name.

  • 16. Fix Price Footer2:24
  • 17. Modal Component11:46

    Build a reusable model component with a header, body, and footer slots using the lightning design system. Control visibility with a boolean and trigger open, cancel, and submit events.

  • 18. Animate Footer Price5:28

    Animate the footer price using a set interval, starting at 38,000 and incrementing by 100 until it matches the selected price, triggered on page load and variant change.

  • 19. Code Push to GitHub4:33

    Push your code to github by configuring git in vscode, creating a repository with a gitignore to exclude node_modules, committing changes, and pushing to origin main for deployment.

  • 20. Code Deployment5:38

    Learn to deploy a real-time lwc oss and lwr project by linking GitHub to Netlify, building with yarn, deploying the site folder, and enabling automatic redeploy on pushes.

  • 21. Salesforce Developer Account2:32

    Create a Salesforce developer account by signing up, verifying your email, and setting a unique username to access the leads object for automatic lead creation in your real-time project.

  • 22. Lead Form Creation21:33

    Create a lead form connected to Salesforce via web-to-lead, embed it in a component, map fields (title, first name, last name, email, city, description), and submit to generate leads.

  • 23. Email for Customer5:10

    Create a basic text email template in Salesforce, set it as the default web-to-lead response, and test sending a personalized email using merge fields.

  • 24. Final Deployment and Testing of Complete Journey4:55

    Deploy the six changed files to the hosted app via git and Netlify CI/CD, then test end-to-end from home to lead creation and confirmation email.

  • 25. Thank You0:22

    Celebrate completing the course by showcasing your achievement to the world, and encourage others to share the course with friends and spread the knowledge.

  • Follow only if you want $assetsDir Error Fix for Windows Machine7:40

    Please follow below steps for Windows

    1. Install Windows Subsystem For Linux (WSL) using the command wsl --install in power shell with admin access.

    2. Restart windows.

    3. Go to start menu and search for Ubuntu On Windows and open it. Please note that default distribution for WSL is Ubuntu, if you have a different one then open that.

    4. Run node -v if node is installed is good , if not follow the link attached in this video resource

    5. If node is available in WSL.  type following command to reach to your project folder
      cd /mnt/c/Users/username/projectfolder
      example - cd /mnt/c/Users/smith/hondalwcoss

    6. Run command Code . and it will open VS code with the project. When you open the teminal make sure it is pointing to wsl or ubuntu

    7. Now you can run yarn run dev.

Requirements

  • A PC with Windows or Linux or Mac with stable internet
  • Basic knowledge of the Salesforce platform and LWC
  • Basic knowledge of HTML, CSS and JS
  • Willingness to learn & Grow

Description

Are you ready to take your web development skills to the next level and dive into the world of real-time applications? In this comprehensive course, "Building a Real-Time Project with LWC OSS and LWR," you will learn how to develop a fully functional real-time project using Lightning Web Components Open Source (LWC OSS) and Lightning Web Runtime (LWR).

Throughout this course, we will guide you through each step of building a real-time project from scratch, covering all the essential concepts and techniques you need to know. We'll start by demonstrating the final project, giving you a clear vision of what you'll be building.

To ensure a strong foundation, we'll begin with the fundamentals, providing you with a solid understanding of LWC OSS and LWR. You'll learn about the project setup and folder structure, enabling you to organize your code effectively.

Next, we'll delve into the core building blocks of the project. You'll discover how to create layout templates to structure your application, implement routing for seamless navigation, and integrate the Salesforce Lightning Design System to enhance the visual appeal of your project.

With the fundamentals in place, we'll guide you through step-by-step implementation of various components. We'll start by creating a dynamic and interactive navbar, followed by designing the home page layout. You'll learn how to develop components such as Car Details, Range Selection, Color Selection, and Price Footer, allowing users to customize and explore various options.

Effective communication between components is crucial, and you'll master this skill by understanding and implementing components communication techniques.

As we progress, we'll address refinements and enhancements. You'll learn how to fix the Price Footer component, create a modal component for improved user experience, and add captivating animations to the footer.

To ensure efficient collaboration and version control, we'll explore how to push your code to GitHub, allowing seamless collaboration and tracking of changes.

Deployment is a critical aspect, and we'll guide you through the process of deploying your project and testing its functionality. You'll gain valuable insights into deploying to a Salesforce Developer Account and learn how to create a lead form and configure customer emails.

By the end of this course, you'll be equipped with the skills and knowledge to confidently develop real-time projects using LWC OSS and LWR. You'll have hands-on experience in building a fully functional real-time application and be ready to deploy it to production.

Enroll now and embark on a transformative journey to become a proficient real-time web developer with Lightning Web Components Open Source and Lightning Web Runtime.

Who this course is for:

  • Looking for a job change in Salesforce
  • Salesforce Professionals
  • Salesforce Developers who wants to build cool project using LWC OSS
  • Willing to Learn LWC OSS & LWR