Illustrates using ( APIs within a Dart (server and client) application
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


The purpose for this project is to illustrate how to create a Dart application that is powered by (salesforce). It describes how to access the APIs, and leverage those within a Dart application. It uses Dart both on the server-side (to host the demo page) and the client (to program the interface).

The demo application uses a tabbed interface to list all accounts and users related to a specific instance.

For very detailed instructions on setting-up and running the project, see my blog entry at


You must have Dart (version or greater) installed locally (I would also recommend the Dart editor), and you must have a instance available to run the API calls against. Salesforce does provide a free developer version of, so that should suffice.


  1. After downloading the code, run "pub install" at the root directory level to install the required packages (as identified in the pubspec.yaml file). If the libraries identified in the yaml file have been updated since this post, you may have to upgrade to the latest version of the Dart SDK.

  2. When "pub install" correctly installs all of the dependencies, run "dart build.dart" from the root directory.

  3. Update the constants.dart file to include your Salesforce credentials within the definition of LOGIN_CREDENTIALS.

  4. Start the server component by running "dart bin/server.dart" (or "dart bin\server.dart" if on Windows).

  5. Within the Dart IDE, right click on "sfdcdemo.html" and select 'Run in Dartium".