Day five: crater clone

September 30, 2015

Crater.io is a great website. What’s better than one crater? Two craters of course! I decided to make a small clone for educational purposes.

live demo

Building this app was relatively simple, using the knowledge acquired from the previous projects, I did not face that many challenges. However, one problem did arise when implementing the insert form. The schema needs to fill the user in whenever an insert takes place without having a visible input. I fixed this issue by adding an autoValue field to the schema:

user: {
  type: String,
  autoValue: function () {
    return Meteor.user().username;
  },
  autoform: {
    type: 'hidden'
  }
},

Leave a star on the repo and let me know what you think!

Comments