import { Links } from '../../api/links/links.coffee'

Meteor.startup =>
  if Links.find().count() == 0
    links = [
      title: 'Do the Tutorial'
      url: 'https://www.meteor.com/try'
    ,
      title: 'Follow the Guide'
      url: 'http://guide.meteor.com'
    ,
      title: 'Read the Docs'
      url: 'https://docs.meteor.com'
    ,
      title: 'Discussions'
      url: 'https://forums.meteor.com'
    ]

    links.forEach (link) =>
      Links.insert link
