meteorite

How to install atmosphere packages without meteorite?

£可爱£侵袭症+ 提交于 2019-11-29 04:06:53
mrt currently has a bug with spaces in Volume names on the Mac https://github.com/oortcloud/meteorite/issues/172 . Until that is fixed, how can I manually install packages from atmosphere? You can create a directory called /packages in your project & then manually install each package and its dependencies. e.g for 'meteor router' in /packages git clone https://github.com/tmeasday/meteor-router.git mv meteor-router router git clone --recursive https://github.com/tmeasday/meteor-page-js-ie-support.git mv meteor-page-js-ie-support page-js-ie-support The second is a dependency on meteor router

How to modify already installed Atmosphere packages

烈酒焚心 提交于 2019-11-29 02:26:38
Before meteor 0.9.0 I could edit Atmosphere package files after it has been installed. Now templates are pre-compiled and hidden in meteor core, so I can't edit html(templates). I found only way to have modified package. Load it from GitHub, modify it and then add as app-specific packages to the /packages directory. Then I can continuously modify this package. Does anyone know better way ? Thank you. you are right, for example with this package mrt:accounts-t9n, I have following this steps 1- cd yourproject && mkdir packages && cd packages 2- git clone https://github.com/softwarerero/meteor

Deploy meteor to own domain

我与影子孤独终老i 提交于 2019-11-28 08:47:50
I've been trying to deploy my meteor app onto my subdomain (meteor.youhock.sg) but it doesn't seem to be working. I've tried the steps stated on their documentations such as setting up subdomain dns zone to origin.meteor.com and mrt deploy meteor.youhock.sg Am I missing something? Thanks in advance gabrielhpugliese You can only use mrt deploy onto *.meteor.com. If you want to continue using their servers, do a CNAME to the subdomain you hosted. From the docs: You can deploy to any available name under meteor.com without any additional configuration, for example, myapp.meteor.com. If you deploy

How do I add console.log() JavaScript logic inside of a Handlebars template?

为君一笑 提交于 2019-11-28 05:48:51
I'm in the process of building a new Meteor app and I can't figure out how to add JavaScript logic with Handlebars to run a console.log() before my each loop. In backbone I would just do, <% console.log(data); %> to test that the data was being passed in. I'm not sure how to do this with Meteor and Handlebars and I couldn't find the solution on their site. Geoffrey Booth Create a Handlebars helper in one of the client-loaded JavaScript files in your project: Template.registerHelper("log", function(something) { console.log(something); }); And then call it in your template: {{log someVariable}}

Meteor.js and Google Maps

蓝咒 提交于 2019-11-27 19:33:07
i already included maps api into my project. Now i want to show some markers on my map. I initialse my map in a startup function: Meteor.startup(function() { ... var mapOptions = { zoom: 8, mapTypeId: google.maps.MapTypeId.ROADMAP }; Map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions); Than i set the center of the map on rendering Template.mapPostsList.rendered = function() { var p2 = Session.get('location'); Map.setCenter(new google.maps.LatLng(p2.lat, p2.lng)); var marker = new google.maps.Marker({ position: new google.maps.LatLng(p2.lat, p2.lng), title:'Meine

How to serve static content (images, fonts etc.) using iron router

旧街凉风 提交于 2019-11-27 19:20:30
I just started working with iron router on meteor. I need to show an image on homepage. I was able to configure route for 'home' using the client side routing. For static files I tried to google and found that adding a server side route might help. So, I added the following code on server's router.js. Router.map(function() { this.route('files', { path: '/files/:path(*)', action: function() { var path = this.params.path; console.log('will serve static content @ '+path); this.response.sendfile(path); } }); }); When I try to access http://localhost:3000/files/someImage.png , it says that no route

How to install atmosphere packages without meteorite?

我与影子孤独终老i 提交于 2019-11-27 18:19:03
问题 mrt currently has a bug with spaces in Volume names on the Mac https://github.com/oortcloud/meteorite/issues/172. Until that is fixed, how can I manually install packages from atmosphere? 回答1: You can create a directory called /packages in your project & then manually install each package and its dependencies. e.g for 'meteor router' in /packages git clone https://github.com/tmeasday/meteor-router.git mv meteor-router router git clone --recursive https://github.com/tmeasday/meteor-page-js-ie

How to modify already installed Atmosphere packages

吃可爱长大的小学妹 提交于 2019-11-27 16:44:28
问题 Before meteor 0.9.0 I could edit Atmosphere package files after it has been installed. Now templates are pre-compiled and hidden in meteor core, so I can't edit html(templates). I found only way to have modified package. Load it from GitHub, modify it and then add as app-specific packages to the /packages directory. Then I can continuously modify this package. Does anyone know better way ? Thank you. 回答1: you are right, for example with this package mrt:accounts-t9n, I have following this

Verify user password in Meteor

醉酒当歌 提交于 2019-11-27 08:29:52
There are some irreversible actions that user can do in my app. To add a level of security, I'd like to verify that the person performing such an action is actually the logged in user. How can I achieve it? For users with passwords, I'd like a prompt that would ask for entering user password again. How can I later verify this password, without sending it over the wire? Is a similar action possible for users logged via external service? If yes, how to achieve it? I can help with the first question. As of this writing, meteor doesn't have a checkPassword method, but here's how you can do it: On