Skip to content

Straightforward data seeder for Angel services.

License

Notifications You must be signed in to change notification settings

angel-dart/seeder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

var app = new Angel()..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.

About

Straightforward data seeder for Angel services.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages