function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Basic Lightning Out example

I'm trying to create a proof of concept of a lightning component running in a lightning out page not on the SFDC platform. I've got a basic component called test.cmp:
  implements="flexipage:availableForRecordHome, force:hasRecordId"
  <aura:attribute name="recordId" type="String" />
  <lightning:card title="Display, Create, or Edit Records">
A basic lightning app called
<aura:application access="GLOBAL" extends="ltng:outApp">
    <aura:dependency resource="c:test" />
and web page on my server called ltngOut2.html:
<!doctype html>

<html lang="en">
  <meta charset="utf-8">

  <title>Lightning Out Example</title>


    <script src="https:/"></script>
    <div id="cmpGoesHere"/>
    $Lightning.use("c:ltngOutTest",    // name of the Lightning app
        function() {                  // Callback once framework and app loaded
                "c:test", // top-level component of your app
                { },                  // attributes to set on the component when created
                "cmpGoesHere",   // the DOM location to insert the component
                function(cmp) {
                    // callback when component is created and active on the page
I think I'm missing the OAuth component, but I don't know how to include it. What else am I missing?
Thanks in advance.