Skip to content

Commit

Permalink
Added data to the posts collection.
Browse files Browse the repository at this point in the history
chapter4-2
  • Loading branch information
tmeasday committed Oct 19, 2015
1 parent 6cb7cf2 commit f8080ff
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions server/fixtures.js
@@ -0,0 +1,19 @@
if (Posts.find().count() === 0) {
Posts.insert({
title: 'Introducing Telescope',
author: 'Sacha Greif',
url: 'http://sachagreif.com/introducing-telescope/'
});

Posts.insert({
title: 'Meteor',
author: 'Tom Coleman',
url: 'http://meteor.com'
});

Posts.insert({
title: 'The Meteor Book',
author: 'Tom Coleman',
url: 'http://themeteorbook.com'
});
}

0 comments on commit f8080ff

Please sign in to comment.