Using Google Cloud
Your Dart app can use many Google Cloud services: Firebase, Google Cloud Platform, and more.
Dart servers can use many Google Cloud products, often with the help of the pre-packaged Docker Official Images for Dart. To get started creating HTTP servers with Dart, check out some of the popular server frameworks.
For information about other Google APIs (including Firebase) that you might want to use from Dart code, see the Google APIs page.
Recommended solutions
#To run Dart in the Cloud, we recommend using serverless computing solutions.
Cloud Run
#You can use Cloud Run's flexible container support, combined with Dart's Docker images, to run server-side Dart code. Creating scalable, high performance APIs and event-driven apps are good use cases for Cloud Run's serverless platform, which frees developers from managing infrastructure.
Examples of Dart servers implemented to run on Cloud Run are in the dart-lang/samples/repo.
For more information about using Cloud Run, see the documentation for building and deploying a service in other languages.
Cloud Functions for Firebase
#Write Cloud Functions for Firebase using Dart to enable full-stack development, reuse code between your client and backend, and respond to Firebase triggers. To get started, see the Cloud Functions for Firebase documentation.
- Firebase Functions package
The core package to write backend functions and APIs in Dart.
- Firebase Admin SDK package
-
Access Firebase services securely from backend servers or Cloud Functions. Use it to manage data, send notifications, or verify authentication tokens.
- Firebase Functions for Dart repository
GitHub repository with quickstart guides, examples, and source code.
Other solutions
#Depending on your needs, you may also want to consider running Dart on the following Google Cloud compute platforms.
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
#
App Engine support for Dart is incomplete and requires the
App Engine flexible environment, which does not
autoscale to zero instances, so we recommend
Cloud Run for new
server-side Dart code.
If you want to use App Engine, consider using the appengine package.
Unless stated otherwise, the documentation on this site reflects Dart 3.11.0. Page last updated on 2026-04-24. View source or report an issue.