ForceJS is a micro-library that makes it easy to work with the Salesforce REST APIs in client-side JavaScript applications. I started the project a couple of years ago focusing on three key requirements: Lightweight with no dependencies Include an implementation of the OAuth User Agent workflow Abstract differences between browser-based and Cordova-based application development to […]
Archive | ECMAScript 6
Sample Application with Angular 2 and Salesforce REST Services
The beta version of Angular 2 was released earlier this week. Check out the announcement blog post here. The Hero Editor tutorial is a great place to start. You can write Angular 2 apps with TypeScript, plain JavaScript, or Dart, and a version of the tutorial is available for each option. I chose TypeScript which […]
Integrating ECMAScript 6 Web Applications with Salesforce Using OAuth and REST
ForceJS is a client-side micro-library that makes it easy to integrate web or hybrid applications with Salesforce using OAuth and the Salesforce REST APIs. I recently updated ForceJS to leverage ECMAScript 6. ForceJS is now available as an ECMAScript 6 module and can be installed from npm. In this article, I’ll walk you through the […]
Sample Code for my Intro to ECMAScript 6 Session at Dreamforce
Thanks everybody for attending my “Introduction to ECMAScript 6” session at Dreamforce. The source code for the examples I used are available in this repository on Github. I also wrote this ECMAScript 6 tutorial that would be a great next step if you want to get started with ES6. Finally, the slides for a similar […]
Building React Applications with Babel, ECMAScript 6 and Modules
With the deprecation of the React tools, the availability of ECMAScript 6 features (natively or through transpilers), and the emergence of Babel as both the React tools replacement and the ECMAScript 6 transpiler of choice, I thought I’d share a simple reference application built with this new stack. In this article, I’ll share three versions […]
ECMAScript 6 Tutorial with Babel and Browserify
In this tutorial, you create a Mortgage Calculator with amortization table using many of the new ECMAScript 6 features. You use Babel to transpile the ECMAScript 6 application and use it in current browsers. You also use Browserify to provide the module implementation. Start the tutorial here
Introduction to ECMAScript 6 Slides
I had a great time presenting “Introduction to ECMAScript 6” at the TelerikNEXT conference. Thanks to everybody who attended. My slides are available here.