OpenShift quick-start for the Dart programming language
Dart Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

This is an quickstart based on the Dart Language[1] released by Google. This quickstart uses the OpenShift PaaS platform and the Do-It-Yourself cartridge to host the application.

This is extremly experimental code. The Dart language and APIs are still evolving so this quickstart does not include the latest binaries.

Rebuilding Dart binaries

You can follow the following process to compile your own dart binaries from latest sources. Make sure to compile the binary on the platform you want to run this application on.

Fedora 16 Instructions (based of Dart compilation instructions[2]):

  1. Install build dependencies:
    su -c 'yum install subversion pkgconfig python perl gcc-c++ bison \
    flex gperf nss-devel nspr-devel gtk2-devel glib2-devel freetype-devel \
    atk-devel pango-devel cairo-devel fontconfig-devel GConf2-devel \
    dbus-devel alsa-lib-devel libX11-devel expat-devel bzip2-devel \
    dbus-glib-devel elfutils-libelf-devel libjpeg-devel \
    mesa-libGLU-devel libXScrnSaver-devel \
    libgnome-keyring-devel cups-devel libXtst-devel libXt-devel pam-devel'
  1. Dart uses the same non-standard build chain as Chromiuim. Download the tools and add them to your path:
    mkdir -p depot_tools
    pushd depot_tools
    svn co
    export PATH=$PATH:`pwd`//depot_tools
  1. Download and compile Dart sources.
    mkdir dart
    pushd dart
    gclient config
    gclient sync
    cd runtime
    ../tools/ --arch=x64 -m release
    echo "Dart binaries available at: `pwd`/out/ReleaseX64/dart"

Running on OpenShift

Create an account at

Create a diy-0.1 application (you can call your application whatever you want)

rhc app create -a dart -t diy-0.1

Add this upstream Dart example repo

cd dart 
git remote add upstream -m master git://
git pull -s recursive -X theirs upstream master
# note that the git pull above can be used later to pull updates to the Dart quick-start

Then push the repo upstream

git push

That's it, you can now checkout your application at:

https://dart-$  (Hosted on OpenShift)


https://dart-$  (Hosted on OpenShift Origin)


GIT_ROOT/.openshift/action_hooks/deploy: This script is executed with every 'git push'. Feel free to modify this script to learn how to use it to your advantage. By default, this script will create the database tables that this example uses.




[3] Dart license: