angel_seeder

version 1.0.build status

Straightforward data seeder for Angel 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

  1. var app = new Angel()..use('/todos', new TodoService());
  2.  
  3. await app.configure(seed(
  4. 'todos',
  5. new SeederConfiguration<Todo>(delete: false, count: 10, template: {
  6. 'text': (Faker faker) => 'Clean your room, ${faker.person.name()}!',
  7. 'completed': false
  8. })));

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