platform/lib/angel.dart

19 lines
549 B
Dart
Raw Normal View History

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';
2016-06-23 21:54:10 +00:00
import 'src/config/config.dart' as configuration;
import 'src/routes/routes.dart' as routes;
import 'src/services/services.dart' as services;
2016-04-22 02:56:21 +00:00
/// 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-06-23 21:54:10 +00:00
await app.configure(configuration.configureServer);
await app.configure(services.configureServer);
await app.configure(routes.configureServer);
2016-04-22 02:56:21 +00:00
return app;
}