meteor

How to perform common FB actions using Meteor?

风流意气都作罢 提交于 2019-12-18 12:01:36
问题 What are the steps required to perform common Facebook actions in Meteor, using the accounts-facebook package? I'm trying to get a friends list, post on a wall, and eventually perform other actions, but I'm unsure how to proceed. 回答1: Update: Slight modifications for meteor 0.6.0 You need to use an API to help you such as the nodefacebook graph api: https://github.com/criso/fbgraph You would need to make a package. You need to make a directory called /packages and in that a directory called

Meteor.js: Get anonymous visitors unique ID/ip/whatever?

∥☆過路亽.° 提交于 2019-12-18 11:26:49
问题 Let's say I'm building an app using meteor.js where I just collect some simple form data from users. Maybe an answer to a simple question or something. They don't need to log in to submit data. How can I protect my app from someone creating a js-loop in their Chrome Console that just inserts crap into my DB? I can protect removal and updates by doing this: Formanswers.allow({ insert: function () { return true; }, update: function () { return false; }, remove: function () { return false; }, })

bcrypt is breaking my meteor application, how do I fix it?

安稳与你 提交于 2019-12-18 11:15:09
问题 I wasn't sure if this should be a stackoverflow or serverfault question. I installed Meteor's accounts-password module and it worked locally, but broke my app when deployed to the server. Here's the scoop: I'm running the latest Meteor 1.0.5 locally on OSX (OS just fully updated) Building with --architecture os.linux.x86_64 Deploying to Ubuntu 14.04.2 LTS x86_64 (just updated) Running nodejs v0.12.1 (freshly built) Serving app with nginx v1.4.0 And still getting: /home/secrethistory/bundle

Meteor: Is there a reactive per-template scope?

家住魔仙堡 提交于 2019-12-18 11:08:21
问题 I'm rendering the same Handlebars template in multiple (arbitrarily many) locations on the same page. Inside each template, I want a button to toggle the visibility of a div. When I save this state with Session.set , clicking one button obviously toggles all the divs in all the template instantiations which is not desired. I could save the state in the data context of the template instance (which is bound to this.data in the Template.myTemplate.rendered and Template.myTemplate.created

Meteor, how to access to a helper from another helper?

夙愿已清 提交于 2019-12-18 10:58:28
问题 I have a helper like Template.user_profile.helpers({ user:function() { return Meteor.users.find({'profile.front_name':Session.get('slug')}).fetch()[0]; } }); I want to add a helper to the collection which could access the user helper and compare its _id with the current user _id , to tell whether the user is visiting its own profile. I'm using something pretty ugly: Template.user_profile._tmpl_data.helpers.user() The final code: Template.user_profile.helpers({ user:function() { return Meteor

Trouble with Nginx and Multiple Meteor/Nodejs Apps

走远了吗. 提交于 2019-12-18 10:56:27
问题 I understand that multiple node.js, and I assume by extension Meteor, can be run on one server using Nginx. I've got Nginx setup and running on a Ubuntu server just fine, I can even get it to respond to requests and proxy them to one application of mine. I however hit a roadblock when trying to get Nginx to proxy traffic to the second application. Some background: 1st app running on port 8001 2nd app running on port 8002 Nginx listening on port 80 Attempting to get nginx to send traffic at /

Meteor use fetch or find in template helper functions?

六眼飞鱼酱① 提交于 2019-12-18 10:51:27
问题 Inside a meteor template helper function, is there any difference in performance, number of re-renders, or anything else if I return the result of a find vs a fetch ? For example, the find approach: Template.players.topScorers = function () { return Users.find({score: {$gt: 100}}, {sort: {score: -1}}); }; Or adding a fetch: Template.players.topScorers = function () { return Users.find({score: {$gt: 100}}, {sort: {score: -1}}).fetch(); }; The find-only approach is what is currently in the docs

Polymer Elements in a Meteor App

僤鯓⒐⒋嵵緔 提交于 2019-12-18 10:44:20
问题 Has anyone successfully added Polymer elements to a Meteor project? I'm struggling to make it work. I've tried using bower to install the Polymer package under public: ├── public │ ├── bower_components │ │ ├── platform │ │ └── polymer │ ├── elements │ │ └── my-element.html I then included the element like this: <head> <title>test</title> <script src="bower_components/platform/platform.js"></script> <link rel="import" href="elements/my-element.html"> </head> <body> ... <my-element></my-element

Best way to get python and meteor talking [closed]

时光怂恿深爱的人放手 提交于 2019-12-18 10:30:07
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I would like to build a project in meteor (version 0.8) that calls a python script which in turn sends some data back to meteor . I am not sure what the best practice is for doing this at the moment. DDP looks good: "Clients that can be used to communicate with Meteor through it's

What security mechanisms does Meteor have? [closed]

房东的猫 提交于 2019-12-18 10:13:16
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . We all know that Meteor offers the miniMongo driver which seamlessly allows the client to access the persistent layer (MongoDB). If any client can access the persistent API how does one secure his application? What are the security mechanisms that Meteor provides and in what