I need to use my lightning component in a web page which is not in any way related to salesforce(its not a SF community or site, its an existing web page that is live). This web page uses a form, and we need to replace this existing form with our lightning component. The data entered in this form should come in to salesforce custom object.
After some research on lightning out, what I could gather was that it requires a connected app and asks for login before this component can be used, which is not desirable in our case. This blog explains the use of lightning out in a node app while this video explains its use in sharepoint/heroku.
- Similar to these examples, how can we expose lightning component in an existing web page, with the authentication happening in backend or without user having to do that extra click?
- If I need to develop such a system I need to create a sample website(HTMl page) for testing and add ltng out code to this web page. How can I test this web page as I do not have a domain to host it? Can it be hosted on "localhost"?
Some questions here may be very basic. Please correct my understanding if I am missing anything. Thanks in advance!