Meteor.startup(function () {
    console.log("Server started.");

    if (Posts.find().count() === 0) {
        console.log("Adding dummy posts.");
        var dummyPosts = [
            {
                title: "My first entry.",
                slug: "my-first-entry",
                description: "An entry in the blog.",
                timeCreated: moment().subtract(10, 'days').unix(),
                author: "Pat Doe"
            },
            {
                title: "My second entry.",
                slug: "my-second-entry",
                description: "Another entry in the blog.",
                timeCreated: moment().subtract(7, 'days').unix(),
                author: "Alex Doe"
            },
            {
                title: "My third entry.",
                slug: "my-third-entry",
                description: "Another 'nother entry in the blog.",
                timeCreated: moment().subtract(6, 'days').unix(),
                author: "Cody Doe"
            },
            {
                title: "My fourth entry.",
                slug: "my-fourth-entry",
                description: "An entry in the blog.",
                timeCreated: moment().subtract(5, 'days').unix(),
                author: "Pat Doe"
            },
            {
                title: "My fifth entry.",
                slug: "my-fifth-entry",
                description: "An entry in the blog.",
                timeCreated: moment().subtract(4, 'days').unix(),
                author: "Pat Doe"
            },
            {
                title: "My sixth entry.",
                slug: "my-sixth-entry",
                description: "An entry in the blog.",
                timeCreated: moment().subtract(3, 'days').unix(),
                author: "Pat Doe"
            },
        ];

        // Add each name to database
        _.each(dummyPosts, function (post) {
            Posts.insert(post);
        });
    }
});

@@ -1926,13 +1926,448 @@
 );%0A    %7D
+%0A%0A    // Create admin user if none exists%0A    if (Meteor.users.find().count() === 0) %7B%0A        console.log('Created Admin user');%0A%0A        var userId = Accounts.createUser(%7B%0A            username: 'brylie',%0A            email: 'test@user.com',%0A            password: 'testing123',%0A            profile: %7B%0A                name: %22Test User%22%0A            %7D%0A        %7D);%0A        Meteor.users.update(userId, %7B$set: %7Broles: %7Badmin: true%7D%7D%7D);%0A    %7D
 %0A%7D);%0A

Test user seed.