2016-04-22 02:56:21 +00:00
|
|
|
/// Your very own web application!
|
|
|
|
library angel;
|
|
|
|
|
2016-04-29 01:22:53 +00:00
|
|
|
import 'dart:async';
|
2016-04-22 02:56:21 +00:00
|
|
|
import 'package:angel_framework/angel_framework.dart';
|
|
|
|
import 'src/config/config.dart' show configureServer;
|
|
|
|
|
|
|
|
/// Creates and configures the server instance.
|
2016-04-29 01:22:53 +00:00
|
|
|
Future<Angel> createServer() async {
|
2016-04-22 02:56:21 +00:00
|
|
|
Angel app = new Angel();
|
|
|
|
|
2016-04-29 01:22:53 +00:00
|
|
|
await app.configure(configureServer);
|
2016-04-22 02:56:21 +00:00
|
|
|
|
|
|
|
return app;
|
|
|
|
}
|