put lightning out in all the things

22
Put Lightning Out in ALL THE THINGS Use your Lightning Components anywhere Mary Scotton Principal Developer Evangelist [email protected] @rockchick322004 www.maryscotton.com

Upload: mary-scotton

Post on 09-Apr-2017

250 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Put Lightning Out in All the Things

Put Lightning Out in ALL THE THINGSUse your Lightning Components anywhere

Mary ScottonPrincipal Developer [email protected]@rockchick322004www.maryscotton.com

Page 2: Put Lightning Out in All the Things

Forward Looking StatementsSafe harbor statement under the Private Securities Litigation Reform Act of 1995:This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services.The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of any litigation, risks associated with completed and any possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent fiscal quarter. These documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site.Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.

Page 3: Put Lightning Out in All the Things

FORCE

HEROKUENTERPRISE

Model-drivendevelopmentplatform

Polyglotplatformforelasticscale

APPEXCHANGE#1EnterpriseAppMarketplace

LIGHTNING

THUNDER

Stream&event-basedprimitives

ModernHTML5Framework

TRAILHEADFun,easy,interactive

waytolearnAppCloud

SalesforceAppCloud

Page 4: Put Lightning Out in All the Things

Let’s do a quick Lightning RecapBefore we talk about Lightning OutWhat is Lightning?

a. A new User Experience for Salesforceb. A set of tools to visually build apps on top of Salesforcec. A design system of tools and best practices for creating custom UIsd. A component framework for building custom appse. ALL THE THINGS Correct Answer

What we’re talking about today

Page 5: Put Lightning Out in All the Things

LightningOut

LightningExperience

LightningFramework

Lightning Component FrameworkProven UI framework for developing dynamic web and mobile apps

Page 6: Put Lightning Out in All the Things

What are Lightning Components?Lightning 101

• UI Framework bridges the client (JS) and server (Apex)

• Reusable building blocks for

an app • Designed for mobile and

desktop apps• Built on the open source

Aura framework

Page 7: Put Lightning Out in All the Things

Developer Benefits from Lightning ComponentsLightning 101 Enables your admins in Lightning App Builder & Community Builder Less Page Refreshes & tightly integrated Responsive and mobile friendly client-centric design Modular and event-driven architecture Device-aware with cross browser compatibility Reusability Future of the platform!

Page 8: Put Lightning Out in All the Things

Anatomy of a Component

D

Component <c:HotelList/>

Apex ControllerInterfaces

Attributes

Markup

CmpBundle

Data Binding

My Hotel AppHotel MapHotel ListHotel List Item

Page 9: Put Lightning Out in All the Things

Introducing Lightning Components for Visualforce

Page 10: Put Lightning Out in All the Things

Demo of Lightning Components for Visualforce

Page 11: Put Lightning Out in All the Things

Recap: Lightning Components in Visualforce

There are only three steps necessary to integrate components:

1. Add <apex:includeLightning/> to your Visualforce page

2. Tell your Visualforce page which Lightning app to use3. Write a function that creates the component on the

page

Page 12: Put Lightning Out in All the Things

Introducing Lightning Out(Beta in Spring ‘16)

Page 13: Put Lightning Out in All the Things

LightningOutPlatforms

Microsoft

SAP

Heroku

OnPremise

Amazon

Andmore...

Page 14: Put Lightning Out in All the Things

Lightning OutFrameworks, Toolkits, and Libraries

Page 15: Put Lightning Out in All the Things

Lightning Out

Requirements Valid Salesforce session ID (SID), for

example from Oauth Ability to modify the generated markup

for the remote siteSupports

Secure browser (HTTPS) Cross-Origin Resouce Sharing (CORS)

Page 16: Put Lightning Out in All the Things

Demo Lightning Out

Page 17: Put Lightning Out in All the Things

What is Lightning?

a. A new User Experience for Salesforceb. A set of tools to visually build apps on top of Salesforcec. A design system of tools and best practices for creating custom UIsd. A component framework for building custom appse. ALL THE THINGS

Let’s talk about this for a sec

Page 18: Put Lightning Out in All the Things

Buildpixel-perfectappseverytime,everywhere.

DesignGuidelines

FrameworkAgnostic

SalesforceLightningDesignSystemNEW

Trust

UILibrary

LivingDesign

CSSFramework

Page 19: Put Lightning Out in All the Things

http://trailhead.salesforce.com

Page 20: Put Lightning Out in All the Things

ReferencesLightning in Visualforce Pages (blog) – bit.ly/LightningOutBlogLightning in Visualforce Pages (doc) – http://bit.ly/lo-vf-docLightning Out Heroku Sample (code) - https://github.com/dcarroll/heroku-lightning

Page 21: Put Lightning Out in All the Things

Thank you

Page 22: Put Lightning Out in All the Things

Lightning Out: Config and Usage1. Enable My Domain (for Lightning Components)2. Configure the remote site for CORS and a Connected App with Oauth3. Create a Lightning App that extends ltng:outApp with dependencies for components4. Include lightning.out.js in the remote site

<script src="https://gs0.lightning.force.com/lightning/lightning.out.js"></script>

5. Authenticate with Salesforce OAuth using the Consumer Key6. Initialize Lightning App with $Lightning.use, passing in the OAuth token

$Lightning.use(”namespace:appName", function() {}, oauth.instance_url, oauth.access_token)

7. Add the components to the remote site using $Lightning.createComponent$Lightning.createComponent(”namespace:cmpName", {}, ”DOMelementId”, function(cmp) {});