Skip to content

Commit f8080ff

Browse files
committedOct 19, 2015
Added data to the posts collection.
chapter4-2
1 parent 6cb7cf2 commit f8080ff

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
 

‎server/fixtures.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
if (Posts.find().count() === 0) {
2+
Posts.insert({
3+
title: 'Introducing Telescope',
4+
author: 'Sacha Greif',
5+
url: 'http://sachagreif.com/introducing-telescope/'
6+
});
7+
8+
Posts.insert({
9+
title: 'Meteor',
10+
author: 'Tom Coleman',
11+
url: 'http://meteor.com'
12+
});
13+
14+
Posts.insert({
15+
title: 'The Meteor Book',
16+
author: 'Tom Coleman',
17+
url: 'http://themeteorbook.com'
18+
});
19+
}

0 commit comments

Comments
 (0)