Blame view

server/modules/seed-database.js 391 Bytes
db5aba845   Ryan Glover   miscellaneous wor...
1
  import seed from 'meteor/themeteorchef:seeder';
c39994410   Ryan Glover   wip converting to...
2

db5aba845   Ryan Glover   miscellaneous wor...
3
4
5
  let _seedUsers = () => {
    seed( 'users', {
      environments: [ 'development', 'staging', 'production' ],
c39994410   Ryan Glover   wip converting to...
6
7
      data: [{
        email: 'admin@admin.com',
db5aba845   Ryan Glover   miscellaneous wor...
8
9
10
11
12
        password: 'password',
        profile: {
          name: { first: 'Carl', last: 'Winslow' }
        },
        roles: [ 'admin' ]
c39994410   Ryan Glover   wip converting to...
13
14
      }]
    });
db5aba845   Ryan Glover   miscellaneous wor...
15
16
17
18
  };
  
  export default function() {
    _seedUsers();
c39994410   Ryan Glover   wip converting to...
19
  }