dox_core 2.0.0-alpha.0 copy "dox_core: ^2.0.0-alpha.0" to clipboard
dox_core: ^2.0.0-alpha.0 copied to clipboard

A perfect solution for your web backend development with dart that offers a wide range of features to help you build powerful and scalable web applications.

example/example.dart

import 'package:dox_core/dox_core.dart';

import '../test/integration/requirements/config/app.dart';
import 'config/database.dart';
import 'config/redis.dart';

void main() async {
  /// Initialize Dox
  Dox().initialize(Config());

  /// add database connection to isolate if required
  Dox().addService(Database());

  /// add database connection to isolate if required
  Dox().addService(Redis());

  /// set total thread
  Dox().totalIsolate(3);

  /// run database migration before starting server
  /// running migration should not be on part of Dox services
  await Database().migrate();

  /// start dox http server
  await Dox().startServer();
}
9
likes
0
pub points
0%
popularity

Publisher

verified publisherdartondox.dev

A perfect solution for your web backend development with dart that offers a wide range of features to help you build powerful and scalable web applications.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

bcrypt, encrypt, mime, path, sprintf, string_scanner, uuid

More

Packages that depend on dox_core