• HOME

  • TEAM

  • CASES

  • CAREERS

  • BLOG

  • TXTINIT

  • CONTACT

  • More

    Archive

    November 2018

    October 2018

    September 2018

    July 2018

    June 2018

    May 2018

    April 2018

    March 2018

    February 2018

    January 2018

    Please reload

    Tags

    Ben Edwards

    Certified Technical Architect

    Deloitte

    Deloitte Digital

    apac

    appexchange

    atlassian

    bitbucket

    bitbucket pipelines

    business

    certifications

    client satisfaction

    cta

    customer engagement

    gold

    good work habits

    jQuery

    marketing cloud

    new starter

    office

    organization

    pardot

    partner

    salesforce

    salesforceohana

    txtinit

    Please reload

    Salesforce Lightning Out with Heroku Node.js

    March 11, 2018

    |

    Tiaan Swart | Technical Consultant

    We recently started to play around with Salesforce Lightning Out.

     

    To get up and running (from scratch) took no longer than a couple of hours, and now we have a template to apply to future projects.

     

    So what is Salesforce Lightning Out?

     

    As per the Salesforce developer documentation:

     

    You can use Lightning Out to run Lightning components apps outside of Salesforce servers. Whether it's a Node.js app running on Heroku, a department server inside the firewall, or even SharePoint, build your custom app with Lightning Platform and run it wherever your users are.

     

    This means that we can build a lighting component, use it in a record page, a community, Salesforce mobile app and now even on an external web server.

     

    To get started we need to create a Lightning App. Check out the lightning app we created over here.

     

    This app has a simple dependency to a Lightning Component we created here.

     

    After we deploy this to our Salesforce Dev or Scratch Org we can now proceed to setup the second part, refer to post deployment steps.

     

    Before proceeding you must have a My Domain setup as well as Community setup.

     

    Now we need to setup a Node.js server on Heroku. Check out the server code that can be deployed straight to Heroku here.

     

    Please note that there are pre and post deployment steps. The community and lightning URLs must be replaced.

     

    Once deployed to Heroku simply open the Heroku app. As a demo we have used this. 

     

    This demo does not include authentication but you could easily apply authentication via ForceJS or OAuth. Perfect use case with External Identities!

     

    Useful links:

    • https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/lightning_out.htm

    • https://www.salesforce.com/video/304563/

     

    Happy coding!

    Please reload

    Recent Posts

    CloudinIT Joins Forces with Deloitte Digital

    November 19, 2018

    New Staff Announcement - Jayson Faderanga

    October 29, 2018

    New Staff Announcement - Marcus Schaper-Kotter

    October 29, 2018

    Please reload

    JOIN OUR NEWSLETTER!

    CLOUDINIT LTD

    Bizdojo, Level 9, Studio 26

    Cider Building

    4 Williamson Ave

    Grey Lynn

    Auckland 1021

    CONTACT US

    info@cloudinit.nz

    +64 9 368 5733

    • linkedin
    • facebook
    • twitter
    • instagram
    • googlePlaces

    ©2018 by CloudinIT Ltd

    JOIN OUR NEWSLETTER!