appengine 0.3.2 copy "appengine: ^0.3.2" to clipboard
appengine: ^0.3.2 copied to clipboard

outdatedDart 1 only

Support for using Dart as a custom runtime on Google App Engine Managed VMs

This package provide support for running Dart on Google App Engine Managed VMs.

Getting started #

Visit dartlang.org/cloud for more information on the requirements for getting started.

When you are up and running a simple hello world application looks like this:

import 'dart:io';
import 'package:appengine/appengine.dart';

void requestHandler(HttpRequest request) {
  request.response
    ..write('Hello, world!')
    ..close();
}

void main() {
  runAppEngine(requestHandler).then((_) {
    // Server running.
  });
}

Add the application configuration in a app.yaml file and run it locally using by running:

gcloud preview app run app.yaml

When you are ready to deploy your application, make sure you have authenticated with gcloud and defined your current project. Then run:

gcloud preview app deploy app.yaml

Send Feedback #

We'd love to hear from you! If you encounter a bug, have suggestions for our APIs or is missing a feature, file it an issue on the GitHub issue tracker.

Note The Dart support for App Engine is currently in beta.

23
likes
0
pub points
93%
popularity

Publisher

verified publisherlabs.dart.dev

Support for using Dart as a custom runtime on Google App Engine Managed VMs

Homepage

License

unknown (license)

Dependencies

fixnum, gcloud, googleapis_auth, http_server, logging, memcache, path, protobuf

More

Packages that depend on appengine