A server backend to support DartPad.
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.
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
.
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.
See also the dart-pad repo.
Please file reports on the GitHub Issue Tracker.
Contributions welcome! Please read this short guide first. You can view our license here.