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 creating HTTP servers with Dart, see the Write HTTP servers page.
For information about other Google APIs (including Firebase) that you might want to use from Dart code, see the Google APIs page.
You can use Cloud Run’s flexible container support, combined with Dart’s Docker images, to run server-side Dart code. 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.
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.
To run Dart on clusters of Compute Engine instances, use Google Kubernetes Engine (GKE).
For more information, see the GKE overview.
App Engine support for Dart is incomplete,
so we recommend that you use Cloud Run instead of App Engine for new
server-side Dart code.
If you want to use App Engine, consider using the
Functions Framework for Dart
The Dart Functions Framework is a Google-sponsored open source FaaS (Function as a Service) project that makes it easy to write Dart functions instead of server applications for handling web requests. Using the framework, you can create functions that handle HTTP requests and CloudEvents and deploy them to Google Cloud.
Read the documentation to get started.