A server backend to support interactive Dart services.
What is it? What does it do?
This project is a small, stateless Dart server, which exposes a RESTful API. The API provides services to:
- analyze Dart code for errors and warnings (
- compile Dart code (
- perform code completion for a snippet of Dart code (
- get dartdoc tooltip information for a snippet of Dart code (
- format Dart code (
- get quick fixes for problems in code (
A simple DartPad example of how to use the library is here: https://dartpad.dartlang.org/2a7fd9328e0a567ee79b
The services APIs are running and available to use. Please give it a try! We may still amend them from time to time in a way that causes breaking changes. If you would like to make sure we discuss this with you first, please get in touch to let us know.
The discovery doc for the server's REST API is available here: http://dart-services.appspot.com/api/discovery/v1/apis/dartservices/v1/rest.
To run the server, run:
dart bin/services.dart --port 8082
The server will run from port 8082 and export several JSON APIs, like
To deploy the server to Dart on AppEngine, follow the instructions here.
warmup.dart to point the BASE_URI to your AppEngine project.
The will deploy the server, and run the warmup sequence and sanity checks.
See also the dart-pad repo.
Issues and bugs
Please file reports on the GitHub Issue Tracker.