View
116
Download
0
Category
Tags:
Preview:
DESCRIPTION
Description: In this session, we will discuss and demonstrate how to build engaging employee and customer-facing applications in JavaScript on top of the Salesforce1 Platform. We will explore all the aspects involved in building these next generation applications including authentication, the REST APIs, mobile development options, and different integration scenarios. We will also share some inspiring examples built on the Salesforce1 Platform with leading JavaScript frameworks such as AngularJS, Ionic, BackboneJS, Ratchet and more. Key Takeaways: ::Get an overview of the Salesforce1 Platform from a developer point of view ::Understand Salesforce OAuth Authentication ::Acquire knowledge on the Salesforce REST APIs ::Get insight on building a Single Page Application on the Salesforce1 Platform ::Explore using modern JavaScript Frameworks such as AngularJS, Ionic, Backbone, etc. ::Gain knowledge on building state-of-the art mobile apps on the Salesforce1 Platform ::Get familiar with building custom apps with Heroku and Heroku Connect Intended Audience: This session is for both seasoned JavaScript developers who want to learn how to build applications on top of the Salesforce1 Platform, and seasoned Salesforce developers who want to learn how to create amazing user experiences in JavaScript. Recommended Resources: https://developer.salesforce.com/en/events/webinars/JavaScript_Applications_Salesforce?d=70130000000lgzk
Citation preview
Building JavaScript Applicationson the Salesforce1 PlatformJune 19, 2014
#forcewebinar
Speaker
Christophe Coenraets
Developer Evangelist
http://coenraets.org
https://github.com/ccoenraets
@ccoenraets
#forcewebinar
Safe Harbor
Safe 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 intellectual property and other litigation, risks associated with 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-Q for the most recent fiscal quarter ended July 31, 2012. This 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.
#forcewebinar
Go Social!
@salesforcedevs / #forcewebinar
Salesforce Developers
+Salesforce Developers
Salesforce Developers
Salesforce DevelopersThe video will be posted to YouTube
& the webinar recap page (same URL as registration).
This webinar is being recorded!
#forcewebinar
Have Questions?
Don’t wait until the end to ask your question! – Technical support will answer questions starting now.
Respect Q&A etiquette– Please don’t repeat questions. The support team is
working their way down the queue.
Stick around for live Q&A at the end– Speakers will tackle more questions at the end, time-
allowing.
Head to Developer Forums– More questions? Visit developer.salesforce.com/forums
#forcewebinar
Agenda
Why Salesforce for JavaScript Developers?
Why JavaScript for Salesforce Developers?
Five Reference Architectures
Single Page Applications with AngularJS and Ionic
#forcewebinar
Why Salesforce?
IdeaBuild App
Idea
buy & setup
hardware
install complex software
define user access
build & test security
make it mobile &
social
setup reporting & analytics
build app
Traditional Platforms
6-12 Months?
App
App
Develop, package and instantly deploy apps
Access rich APIs and frameworks
Code in your favorite language
Add fields, design layouts, and manage users
Point-and-click workflow & business logic
Drag-and-drop reports and dashboards
Programmatic Declarative
Programmatic and Declarative Development
Why JavaScript?
1. Build Engaging User Experiences
2. Leverage JavaScript Libraries
3. Build Custom Applications
#forcewebinar
Five Reference Architectures
1. JavaScript in Visualforce Pages
2. JavaScript Apps Hosted Externally
3. Canvas Apps
4. Hybrid Apps
5. Consumer Apps
1. JavaScript in Visualforce Pages
(REST)JavaScript Remoting
Remote Objects
Visualforce Page
Demos
2. JavaScript Apps Hosted Externally
REST APIs
app.jsindex.html
OAuth
HTTP Server
Cross Domain Policy
2. JavaScript Apps Hosted Externally
app.jsindex.html
OAuth
REST APIs
HTTP Server
Proxy
http://bit.ly/trysoql
http://bit.ly/sfdash
Connected App
#forcewebinar
ForceTK: JavaScript REST API Toolkit
http://bit.ly/forcetk
3. Embed a Canvas App
iframe with context about:
– Current user
– Current page
JavaScript SDK
http://bit.ly/sf-canvas-sdk
4. Hybrid Apps (Mobile SDK)
REST APIs
OAuth
#forcewebinar
Mobile SDK for Hybrid Apps
Wrapper
Bridge
Hybrid Remote:– Visualforce Pages loaded in native container as needed
Hybrid Local:– HTML + JS + CSS installed locally on the device
#forcewebinar
Single Page Application (SPA)
<html>
<head>
<title>My App</title>
<script src="app.js"></script>
</head>
<body></body>
</html>
#forcewebinar
Single Page Application
Web app that lives in a single HTML page
Views created in JavaScript and injected into DOM
Well suited for mobile apps:– More responsive (no network dependency to get the UI)
– Works offline
#forcewebinar
New Challenges
Create complex apps in JavaScript
Long-lived DOM
Native-like user experiences
JavaScript Frameworks Can Help
DOM
Architecture
UI
Full stack Custom stack
#forcewebinar
MVC Architecture
Templates
Data Binding
UI Layer on top of AngularJS
UI Components
UI Patterns
+
Tabs Side MenusLists Action Sheets
Contacts Demo
5. Consumer App
Case
Campaign
Product
ContactInteracti
on
Campaign
Product
ContactInteracti
on
Marketing Manager
Customer
Heroku Connect
REST
Nibs Demo
#forcewebinar
Recap
Use JavaScript in Visualforce pages to deliver great user experiences
Create connected apps in JavaScript that authenticate with Salesforce through OAuth and access data using APIs
Create Hybrid Apps in JavaScript using the Mobile SDK
Use Frameworks like AngularJS and Ionic to create Single Page Applications
Combine the Salesforce, Heroku, and Heroku Connect to deliver engaging consumer apps
#forcewebinar
Resources
REST API Home– https://developer.salesforce.com/page/REST_API
Mobile SDK Home– https://developer.salesforce.com/page/Mobile_SDK
AngularJS– https://angularjs.org/
Ionic Framework– http://ionicframework.com/
#forcewebinar
Next Steps
Salesforce Developer workshop– http://ccoenraets.github.io/salesforce-developer-workshop/
#forcewebinar
Survey
Your feedback is crucial to the successof our webinar programs. Thank you!
http://bit.ly/SF1JScript
#forcewebinar
#forcewebinarwww.summerofhacks.com
July 11-13
July 18-20
July 25-27
July 18-20
#summerofhacks
#forcewebinar
October 13-16, 2014 • San
Francisco, CA
$899 DEVELOPER DISCOUNT CODE:
D14DVLPR
#devzone
#forcewebinar
Q & A
Christophe Coenraets
Developer Evangelist
http://coenraets.org
@ccoenraets
Recommended