start method
Implementation
@override
Future<GetServerController> start() async {
_getPages = getPages ?? List.from([]);
_homeParser();
if (isLogEnable) {
createLogFile();
}
initialBinding?.dependencies();
fs.log('Future Server Started');
// fs.log('Don\'t forget to say thanks to Kar1mMohamed');
print(
'This system is powered by future_server.. \n Don\'t forget to say thanks to Kar1mMohamed');
if (_getPages != null) {
if (jwtKey != null) {
TokenUtil.saveJwtKey(jwtKey!);
}
RouteConfig.i.addRoutes(_getPages!);
}
if (useHive) {
Hive.init(hivePath ?? Directory.current.path);
print('Hive initialized');
registerHives?.registerAdapters();
await openBoxex?.openBoxex();
await Future.delayed(const Duration(seconds: 1));
}
await startServer();
return Future.value(this);
}