angel_file_service 2.0.1 copy "angel_file_service: ^2.0.1" to clipboard
angel_file_service: ^2.0.1 copied to clipboard

Angel service that persists data to a file on disk.

example/main.dart

import 'package:angel_file_service/angel_file_service.dart';
import 'package:angel_framework/angel_framework.dart';
import 'package:file/local.dart';

configureServer(Angel app) async {
  // Just like a normal service
  app.use(
    '/api/todos',
    new JsonFileService(const LocalFileSystem().file('todos_db.json')),
  );
}
0
likes
40
points
44
downloads

Publisher

verified publisherangel-dart.dev

Weekly Downloads

Angel service that persists data to a file on disk.

Repository (GitHub)

License

MIT (license)

Dependencies

angel_framework, file, pool

More

Packages that depend on angel_file_service