galileo_seeder 3.0.0
galileo_seeder: ^3.0.0 copied to clipboard

Straightforward data seeder for Galileo services.

galileo_seeder #

version 1.0. build status

Straightforward data seeder for Galileo services. This is an almost exact port of feathers-seeder, so its documentation should almost exactly match up here. Fortunately, I was also the one who made feathers-seeder, so if you ever need assistance, file an issue.

Example #

var app = new Galileo()..use('/todos', new TodoService());

await app.configure(seed(
    'todos',
    new SeederConfiguration<Todo>(delete: false, count: 10, template: {
        'text': (Faker faker) => 'Clean your room, ${faker.person.name()}!',
        'completed': false
    })));

NOTE: Don't await seeding at application startup; that's too slow. Instead, run it asynchronously.

1
likes
65
pub points
0%
popularity

Publisher

galileodart.com

Straightforward data seeder for Galileo services.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

faker, galileo_framework

More

Packages that depend on galileo_seeder