angel3_file_service 8.2.0 copy "angel3_file_service: ^8.2.0" to clipboard
angel3_file_service: ^8.2.0 copied to clipboard

Angel service that persists data to a file on disk, stored as a JSON list.

example/main.dart

import 'package:angel3_file_service/angel3_file_service.dart';
import 'package:angel3_framework/angel3_framework.dart';
import 'package:file/local.dart';

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

Publisher

verified publisherdukefirehawk.com

Weekly Downloads

Angel service that persists data to a file on disk, stored as a JSON list.

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

angel3_framework, file, pool

More

Packages that depend on angel3_file_service