How to import from JSON file into Meteor
// import data only when Products collection is empty if (Products.find().count() === 0) { console.log(“Importing private/products.json to db”) var data […]
// import data only when Products collection is empty if (Products.find().count() === 0) { console.log(“Importing private/products.json to db”) var data […]
Packages that can be used to create multi-tenant apps. https://github.com/flipace/meteor-tenantify https://github.com/mizzao/meteor-partitioner This is a ripped down version of what’s in […]
References: https://stackoverflow.com/questions/12632452/publishing-subscribing-multiple-subsets-of-the-same-server-collection https://github.com/meteor/meteor/issues/3259
Meteor.methods({ test: function() { if (this.isSimulation) { return 1; // Client wants this to be 1 } else { return […]
Looking into creating a multi-tenant app with Meteor? Luckily you’re not alone and there are quite a few options available. […]
if (Meteor.is_server) { Meteor.methods({ fetchFromService: function(userName) { var url = “https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=”+userName+”&count=10”; //synchronous GET var result = Meteor.http.get(url, {timeout:30000}); if(result.statusCode==200) […]
Router.route(‘/search/:location?/:keyword?’) Add an interogration mark after the parameter which you designate as optional. It’s that simple.
A simple example on how to use the upsert query with Meteor framework. Values.upsert({ // Selector source: “SourceOne”, currency: […]
http://www.hacksparrow.com/using-node-js-to-download-files.html
Guide for using Meteor 1.4 with MUP 1. Install NVM on your server, and set node version to 4.6.x curl […]
You must be logged in to post a comment.