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 | REST
Angular 2 and Ionic 2 Data Services
Part 2: Using REST Services
In part 1 of this series, I shared two approaches to create Mock services in Angular 2 / Ionic 2 applications: using a Promise-based or an Observable-based API. In this article, I’ll share a version of the IonicRealty sample application implemented using actual REST services, and I’ll revisit the Observable vs Promise discussion. The code […]
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 […]
Belgian Beer Explorer with React, Bootstrap, Node.js and Postgres
Belgium has a long tradition of beer making. According to Wikipedia, the country counts over 1700 beers of various styles including Trappist, Abbey, Saisons, Lambic, Gueuze, Fruit Beers, White, Double, Triple, Quadruple, etc. I thought it would be fun to build an app that lets users search and explore this list in different ways: by […]
ForceServer: A Local Server to Streamline Salesforce OAuth and REST Development
Salesforce provides a REST API that makes it easy to access and manipulate Salesforce data from any application. To start using Salesforce OAuth and the REST APIs, you need to add a few components to your development environment: A Proxy Server to avoid cross-domain policy issues when invoking Salesforce REST services. (The Chatter API supports […]
Employee Directory Sample App with Ionic and Node.js
It has been six months since I posted the first version of the Employee Directory app built with Ionic and AngularJS. Ionic has been moving fast, and it was time for an update. Employee directory is a sample application that allows you to look up employees by name, view the details of an employee, call, […]

Creating a REST API using Node.js, Express, and MongoDB
I recently used Node.js, Express, and MongoDB to rewrite a RESTful API I had previously written in Java and PHP with MySQL (Java version, PHP version), and I thought I’d share the experience… Here is a quick guide showing how to build a RESTful API using Node.js, Express, and MongoDB. Installing Node.js Go to http://nodejs.org, […]
Backbone.js Wine Cellar Tutorial — Part 3: Deep Linking and Application States
UPDATE: I posted a “Postface” to this series with some lessons learned and an improved version of the app. Make sure you read it here. In Part 1 of this tutorial, we set up the basic infrastructure for the Wine Cellar application. In Part 2, we added the ability to create, update, and delete (CRUD) […]
Backbone.js Wine Cellar Tutorial — Part 2: CRUD
In Part 1 of this tutorial, we set up the basic infrastructure for the Wine Cellar application. The application so far is read-only: it allows you to retrieve a list of wines, and display the details of the wine you select. In this second installment, we will add the ability to create, update, and delete […]
Backbone.js Wine Cellar Tutorial — Part 1: Getting Started
One of the challenges when building nontrivial Web applications is that JavaScript’s non-directive nature can initially lead to a lack of structure in your code, or in other words, a lack of… backbone. JavaScript is often written as a litany of free-hanging and unrelated blocks of code, and it doesn’t take long before it becomes […]