目录

Contents

Using Google Cloud

Dart servers can use many Google Cloud products, often with the help of pre-packaged Docker images that the Dart team maintains.

For information about other Google APIs (including Firebase) that you might want to use from Dart code, see the Google APIs page.

Cloud Run

You can use Cloud Run’s flexible container support, combined with Dart’s Docker images, to run server-side Dart code.

One example of a Dart server that uses Cloud Run is dartbug.com, the redirect service for Dart issues and bugs. You can find its source code in the dart-lang/dartbug.com repo.

For more information about using Cloud Run, see the documentation for building and deploying a service in other languages.

Compute Engine

To run Dart code on Compute Engine, use Compute Engine’s support for running containers, combined with Dart’s Docker images.

For more information, see the Compute Engine documentation for using software containers.

Kubernetes

To run Dart on clusters of Compute Engine instances, use Google Kubernetes Engine (GKE).

For more information, see the GKE overview.

App Engine

The App Engine support for Dart is incomplete and experimental, so we recommend that you use Cloud Run instead of App Engine to run new server-side Dart code. If you do use App Engine, you might also want to use the appengine package.