Get Started

Send feedback

Follow these steps to start using Dart to develop web apps. First you’ll play with Dart in your browser, no download required. Then you’ll install Dart and build a small app that uses the AngularDart framework and AngularDart Components.

1. Play with DartPad

With DartPad you can experiment with the Dart language and APIs, no download necessary.

For example, here’s an embedded DartPad that lets you play with the code for a todo-list generator. Click run ( red-run.png ) to run the app. You can also edit the source code—perhaps you’d like to add “horse” to the list of pets. To get the full DartPad experience, open the example at

More information:

2. Install Dart

Once you’re ready to move beyond DartPad and develop real apps, you need the Dart SDK and Dartium (a special build of Chromium with the Dart VM).

As you install, note the paths to the SDK and Dartium. You’ll need them in step 4.

The easiest way to install Dart on Windows is to use the community install wizard.

Screenshot of the Dart Setup Wizard

You can use Aptitude to install the Dart SDK on Linux.

First, perform the following one-time setup:

sudo apt-get update
sudo apt-get install apt-transport-https
sudo sh -c 'curl | apt-key add -'
sudo sh -c 'curl > /etc/apt/sources.list.d/dart_stable.list'

Then install the Dart SDK:

sudo apt-get update
sudo apt-get install dart

Finally, download Dartium.

With Homebrew, installing Dart is easy.

brew tap dart-lang/dart
brew install dart --with-content-shell --with-dartium

More information: installing and updating Dart

3. Get WebStorm

Although using an IDE is optional, we highly recommend WebStorm. WebStorm comes with Dart support, making it easy to write correct Dart code and to run it in Dartium or any other browser.

Download and install WebStorm.

More information: Dart tools for the web

4. Create a web app

We recommend using Angular for your Dart web apps, but you have other options as well. Here’s how to use WebStorm to create a web app that uses AngularDart:

  1. Choose Create New Project from WebStorm’s welcome screen, or File > New > Project… from the menu. A dialog appears.
  2. Choose Dart from the list on the left.
  3. If the Dart SDK path and Dartium path fields don’t have values, enter them.
  4. Edit the Location field to set the app location and name.
  5. Select Generate sample content to show the list of templates.
  6. Choose the AngularDart Web App template.
  7. Click Create.
    WebStorm screenshot

More information:

5. Run the app

To run the app from WebStorm, right-click the app’s web/index.html file and choose Run ‘index.html’.

Running the app from WebStorm

You should see a simple todo list manager. Try it out!

Running the customized app from WebStorm

6. Add custom code to the app

Let’s customize the app you just created.

  1. Copy the thingsTodo() function from the DartPad above to the bottom of the lib/todo_list/todo_list_service.dart file.

  2. Still in todo_list_service.dart, initialize the mockTodoList field using thingsTodo():

    class TodoListService {
      List<String> mockTodoList = thingsTodo().toList();
    Iterable<String> thingsTodo() sync* { ... }
  3. Run the app. Now the initial todo list has things to do! After you feed the cats, your todo list should look like this:

    Running the customized app from WebStorm

What next?

Learn more about AngularDart.

Or check out these resources:

If you get stuck, find help at Community and Support.