Flutter 2.0.3 (#681)

3 files changed
tree: 18e795ea55b73bf6fcb9f85aa0ca465edcefd3c5
  1. .github/
  2. benchmark/
  3. bin/
  4. doc/
  5. example/
  6. lib/
  7. protos/
  8. test/
  9. tool/
  10. .dockerignore
  11. .gitattributes
  12. .gitignore
  13. .gitmodules
  14. .gitpod.Dockerfile
  15. .gitpod.yml
  16. analysis_options.yaml
  17. app.yaml
  19. CHANGELOG.md
  20. cloud_run.Dockerfile
  21. Dockerfile
  22. flutter-sdk-version.yaml
  24. pubspec.lock
  25. pubspec.yaml
  26. README.md

Dart Services

A server backend to support DartPad.

Build Status Coverage Status Uptime Status Gitpod Ready-to-Code

What is it? What does it do?

This project is a small, stateless Dart server, which powers the front-end of DartPad. It provides many of DartPad's features, including static analysis (errors and warnings), compilation to JavaScript, code completion, dartdoc information, code formatting, and quick fixes for issues.

Getting set up

This project is built with grinder. To install, please run:

$ pub global activate grinder

The dart-services v2 API is defined in terms of Protobuf, which requires the installation of the Protobuf protoc compiler. Please see Protocol Buffers for detailed instalation instructions.

The Dart protoc plugin is also required for the above protoc compiler to generate Dart code. To install, please run:

$ pub global activate protoc_plugin

Initialise Flutter

The Flutter SDK needs to be downloaded and setup.

$ dart pub install
$ dart run tool/update_sdk.dart

Build the subsidiary files

The Dart Services server depends on generated files. Run the following to generate all the required binaries.

$ grind deploy


To run the server, run:

$ grind serve

The server will run from port 8082 and export several JSON APIs, like /api/compile and /api/analyze.


To run tests:

grind test for unit tests


grind deploy for all tests and checks.

dart-services requires the redis package, including the redis-server binary, to be installed to run tests. sudo apt-get install redis-server will install this on Ubuntu, but see Redis' Quick Start guide for other platforms.


To deploy the server to Dart on AppEngine, follow the instructions here.

Modify warmup.dart to point the BASE_URI to your AppEngine project.

Then run


The will deploy the server, and run the warmup sequence and sanity checks.

Related projects

See also the dart-pad repo.

Issues and bugs

Please file reports on the GitHub Issue Tracker for DartPad.

License and Contributing

Contributions welcome! Please read this short guide first. You can view our license here.