meteor

Use Twitter Bootstrap 3 RC1 with Meteor

自作多情 提交于 2019-12-21 06:44:33
问题 I am trying to use the latest Twitter Bootstrap 3 RC1 with Meteor. I tried to install it using bower, but Meteor threw an error because of some HTML or JS included in the bootstrap package (the _includes directory). I am aware that meteor has a bootstrap package, however this is Bootstrap 2.3. I wonder if there's a way to either ignore certain files so that Meteor will not try and serve these files, or other way to get around this. 回答1: Have you tried the custom atmosphere package bootstrap3

Connecting to Meteor Mongo from GUI

折月煮酒 提交于 2019-12-21 06:15:19
问题 How do I connect to my Meteor Mongo instance from a GUI, e.g. MongoChef (I am on Windows running an Ubuntu Virtual Machine which has the Meteor application on it)? I have tried connecting using the IP address of my running Virtual Box, with both port 3001 and 27017 with no joy - should I be setting up some port forwarding or something? 回答1: This applies to an out-of-the-box install of Mongo when Meteor is installed: The mongo daemon mongod binds to 127.0.0.1 so you need to connect to it via a

Meteor: Best Method for Passing Mongo Selector from Client to Server

倾然丶 夕夏残阳落幕 提交于 2019-12-21 06:05:06
问题 I have a mongo collection like the following (Foo(X) == keys; Bars == values): EDIT- I come from a relational database background. Obviously my collection doesn't look like the below, but you get the idea... +--------+--------+--------+ | Foo1 | Foo2 | Foo3 | +--------+--------+--------+ | Barbar | Barbar | Bar | | bar | Bar | BarBar | | Bar | barbar | barBar | | ... | ... | ... | It's important for me to allow my client to filter the data. Sometimes, all columns will have a filter, other

How to call async method from Meteor own callbacks?

左心房为你撑大大i 提交于 2019-12-21 05:18:14
问题 I've just spent a few hours reading SO with answers such as Meteor: Calling an asynchronous function inside a Meteor.method and returning the result Unfortunately, I still didn't manage to user fibers, or futures for that matter. I'm trying to do something fairly simple (I think!). When creating a user, add a variable to the user object, based on the result of an asynchronous method. So imagine if you will my async method is called on a 3rd party db server called BANK, which could take

How to use node.js libraries that have transitive dependencies with Meteor?

谁说我不能喝 提交于 2019-12-21 05:14:15
问题 It is possible to use node.js packages within Meteor as described here, however as require is not defined globally, packages having transitive dependencies (as for example xml2js or aws-lib) break with ReferenceError: require is not defined Any ideas on how to fix or work around this issue without altering the libraries? 回答1: I followed the instructions from your linked question. I used the node-xml2js library to test this with the test fixture from the code base and achieved it in the

How can I force a meteor app to make all HTTP calls through a proxy?

只愿长相守 提交于 2019-12-21 05:11:08
问题 I'm trying to emulate curl through a proxy server. The meteor docs don't mention any proxy settings for HTTP.* methods. Is there a meteor-specific solution? Right now I'm using ProxyChains. Ideally I'd use a SOCKS proxy and only HTTP.* calls would go through it, but I'm open to all calls from the application going through any type of proxy. 回答1: Meteor 1.1 update You can pass options directly to the npm request module via the npmRequestOptions parameter to HTTP.*. The functionality was

error starting todos example

我的梦境 提交于 2019-12-21 05:07:16
问题 noob here. on linux, i installed meteor, tried to load 'todos' app, got this error. it seems to be related to file system monitoring? am i missing a package or perm? i installed meteor with sudo, but i installed the 'todos' as my basic user. thanks in advance! ~$ mkdir meteorDev ~$ cd meteorDev/ ~/meteorDev$ meteor create --example todos todos: created. To run your new app: cd todos meteor ~/meteorDev$ cd todos/ ~/meteorDev/todos$ meteor [[[[[ ~/meteorDev/todos ]]]]] Running on: http:/

Meteor 1.0 - why does “Building the application” take so much longer than it used to?

匆匆过客 提交于 2019-12-21 04:55:11
问题 So I just updated to Meteor 1.0. While developing an app locally, whenever I update any of the js files, it takes ~15+ seconds to build the application, during which the console says "Building the application". Erg! Is this a new behavior in 1.0? It used to take 1-2 seconds to see changes made to js files on localhost (with 0.9.1, I believe, which I think was the last version I had). It was functionally instantaneous. And now there's a huge lag time while developing before seeing changes,

Print the loop index in Meteor.js templates [duplicate]

给你一囗甜甜゛ 提交于 2019-12-21 04:32:14
问题 This question already has answers here : How can I get the index of an array in a Meteor template each loop? (6 answers) Closed 4 years ago . I have a list of objects in meteorjs which I am iterating in meteorjs templates like {{#each objects}} {{/each}} In the template I want to print the number of the loop iteration. That is, if the length of the objects list is 100 I want to print the numbers from 1 to 100 in the template. How can I do this? 回答1: You can't do this at the moment without

How to print key and values in Meteor Template?

跟風遠走 提交于 2019-12-21 04:28:41
问题 I have JSON from helper { "Name": "abc", "Age": 24, "Address" { "street" : "xyz street", "city" : "zyz city", "country" : "XY" } } I want to print the address with key and values <template name="User"> {{#with user}} Name : {{Name}} Age : {{Age}} {{#each Address}} {{key}} : {{value}} //Here is my question {{/each}} {{/with}} </template> How to print key and values in a template? 回答1: The {{#each}} block helper only accepts cursors and arrays arguments. You could override the Address helper to