appengine 0.3.3 copy "appengine: ^0.3.3" to clipboard
appengine: ^0.3.3 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.

21
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