accounts-muppets is a Meteorite package to populate your Meteor.users() collection with Muppets.
First, install the accounts-muppets package from the command line, like so:
# add the muppets to your app
meteor add awatson1978:accounts-muppets
# add them to your database
Muppets=true meteor
The user objects are have a fairly simple document schema that looks like the following:
{
username: 'mspiggy',
password: 'mspiggy',
email: '[email protected]',
profile: {
name: 'Ms. Piggy',
role: 'Muppet',
alignment: 'Neutral Evil',
quote: 'Kermie, it seems that every time we have a beautiful lady on the show, you completely forget about me.',
avatar: '/packages/awatson1978_accounts-muppets/muppets/MsPiggy.jpg',
thumbnail: '/packages/awatson1978_accounts-muppets/muppets/thumbnails/MsPiggy.jpg'
}
}
Usernames and passwords for all the users should be the same. For the most part, the username and password will both be the person's first name, but a number of users are set as the last name. All emails will be at the test.org
domain.
Animal
Crazy Harry
Dr. Honeydew
Fozzy the Bear
Gonzo
Kermit the Frog
Ms. Piggy
Sam the Eagle
Sweetums
{{#each userList}}
{{profile.name}}<br>
{{/each}}
if (Meteor.isClient) {
Meteor.subscribe("users");
Template.registerHelper('userList', function(){
return Meteor.users.find();
});
}
if (Meteor.isServer) {
Meteor.publish("users", function(){
return Meteor.users.find();
});
}
Images are copyright Jim Henson Productions. Don't use in production without permission. This package is for private, non-commercial use only.