All Questions

35
votes
6answers
21433 views

How to use Meteor methods inside of a template helper

How can I define a Meteor method which is also callable in a template helper? I have these two files: file: lib/test.js Meteor.methods({ viewTest : function (str) { return str; } })...
80
votes
4answers
19579 views

Understanding Meteor Publish / Subscribe

I've got a simple app set up that shows a list of Projects. I've removed the autopublish package so that I'm not sending everything to the client. <template name="projectsIndex"> {{#eac...
15
votes
2answers
3046 views

Meteor.publish: publish collection which depends on other collection

I have a publish function as follows: Meteor.publish('tasks', function (name) { var project = Projects.findOne({name: name}); return Tasks.find({projectId: project._id}); }); Now assume th...
82
votes
7answers
61425 views

How do I use an existing MongoDB in a Meteor project?

Let's say there is a running MongoDB server for a GUI client (by wxPython) for a while. How could I connect my new Meteor project to my already existing MongoDB?
34
votes
3answers
14864 views

Using Multiple Mongodb Databases with Meteor.js

Is it possible for 2 Meteor.Collections to be retrieving data from 2 different mongdb database servers? Dogs = Meteor.Collection('dogs') // mongodb://192.168.1.123:27017/dogs Cats = Meteor.Col...
48
votes
4answers
26278 views

Meteor: Proper use of Meteor.wrapAsync on server

Background I'm trying to integrate stripe payments into my site. I need to create a stripe user using my private stripe key. I'm storing this key on my server, and calling a server method to create t...
13
votes
2answers
7658 views

How can I access constants in the lib/constants.js file in Meteor?

I followed the documentation to put the constants in the lib/constants.js file. Question: How to access these constants in my client side html and js files?
23
votes
2answers
9280 views

recommended nginx configuration for meteor

The site configuration for my meteor app has directives which look like the following: server { listen 443; server_name XXX; ssl on; ssl_certificate XXX; ssl_certificate_key XXX; locati...
36
votes
4answers
27475 views

Meteor: Calling an asynchronous function inside a Meteor.method and returning the result

I want to call an asynchronous function inside a Meteor method and then return the result from that function to Meteor.call. (How) is that possible? Meteor.methods({ my_function: function(arg1, ar...
14
votes
1answers
6150 views

How to serve a file using iron router or meteor itself?

I'm trying to serve a zip file on my Meteor app but I'm stuck. After a lot of Googling it seems the best way to go is with Iron Router but I don't know how: Router.map -> @route "data", wher...

Previous Next