import 'package:protevus_framework/protevus_framework.dart'; import 'package:protevus_rethinkdb/protevus_rethinkdb.dart'; import 'package:belatuk_rethinkdb/belatuk_rethinkdb.dart'; import 'package:logging/logging.dart'; void main() async { RethinkDb r = RethinkDb(); var conn = await r.connect( db: 'testDB', host: "localhost", port: 28015, user: "admin", password: ""); Protevus app = Protevus(); app.use('/todos', RethinkService(conn, r.table('todos'))); app.errorHandler = (e, req, res) async { print('Whoops: $e'); }; app.logger = Logger.detached('protevus')..onRecord.listen(print); }