Clone this repo:
  1. fb8734b Merge pull request #399 from dart-lang/smaller_artifacts by Devon Carew · 3 days ago master
  2. 5392a18 upload compressed compilation artifacts by Devon Carew · 3 days ago smaller_artifacts
  3. ce947b7 Excluding flutter_web from analysis (#397) by Brett Morgan · 4 days ago
  4. 210c96a Merge pull request #398 from dart-lang/devoncarew-patch-1 by Devon Carew · 4 days ago
  5. 0cec108 Update flutter_web.dart by Devon Carew · 4 days ago devoncarew-patch-1

Dart Services

A server backend to support DartPad.

Build Status Coverage Status Uptime Status

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.

Running

To run the server, run:

dart bin/server_dev.dart --port 8082

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

Testing

To run tests:

grind test for unit tests

or:

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.

Deploying

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

./tools/deploy.sh

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.