简单来说
- 是一个构建支持RESTful APIs/ORM对象数据库映射/OAuth2.0的http server 框架
- 下面几行代码创建并运行服务器
pub global activate aqueduct
$ aqueduct create myserv
$ cd myserv
$ dart --observe bin/main.dart
注:dart –observer xxx.dart 用于调试和性能分析web server
然后就可以:
- web访问:localhost:8888/example
- curl访问:curl -X GET http://localhost:8888/example
- 调试:localhost:8181