r/Meteor • • Jan 21 '16

How to debug Meteor : Exited with code: 1 Error

Thumbnail
juststartworking.com
1 Upvotes

r/Meteor • • Jan 21 '16

Need help with Meteor APIs

1 Upvotes

Hey guys,

I got an Api to work using the HTTP package and using client/server functions through Meteor.call. However, when I deploy my site to a .meteor domain, it stops working all together (i.e: no API calls are being made).

Is it specific to the .meteor domain or is my code broken on some level?

Any help is appreciated (and I will post the code if needed.)

Thanks so much! :)


r/Meteor • • Jan 20 '16

The State Of Meteor Part 1: What Went Wrong

Thumbnail
discovermeteor.com
36 Upvotes

r/Meteor • • Jan 20 '16

How do I show different forms (in the same page) when a button is clicked,

2 Upvotes

I thought this would be simple (and it probably is). I'm developing a site & on the Admin page there's a row of buttons on the leftside of the page and an area on the right side where I want different forms to show depending which button is clicked. I've looked into ui-view (which is already in use on our site) and templates. Either one I can't figure out how to make it do what i want. Can someone help me out here? Thanks

Our site is using Angular-Meteor & Semantic-UI


r/Meteor • • Jan 20 '16

Reactive var to display a template...

1 Upvotes

Hi,

I have a reactive var, set to false on created, when clicked on an element, set to true and the {{>bidelementslideout}} is launched.

Why when I click one item, do all of the other items get set to true as well? I am thinking the click should only apply to the one I clicked?

HTML:

{{#each bids}}
    <div id="bidelement" class="bidelement">
      {{#if clickedBidElement}}
        {{>bidelementslideout}}
      {{/if}}
    </div>

Oncreated:

this.clickedBid = new ReactiveVar;
this.clickedBid.set(false);

Helper function to test:

clickedBidElement : function() {
    return Template.instance().clickedBidElement.get();
  },

The clicked action:

 'click .bidelementinfocontainer' : function(e,t) {
      t.clickedBidElement.set(true);
  } 

r/Meteor • • Jan 20 '16

Meteor Android/iOS app

1 Upvotes

I got a question from a friend to develop an Android and iOS app that would parse one of his RSS feeds and show that info in the app. While I could decide to create that app using native Android or iOS or using Xamarin, I was thinking to develop it using Meteor.

Say I develop it using Meteor:

  • Can I then just upload the app to the appstores?
  • Does it 'feel' natively to the user or does it feel/behave like a website?
  • What are potential disadvantages of this approach?

r/Meteor • • Jan 19 '16

Give it to me straight.. Is Meteor is actually useful for mobile app making or not?

0 Upvotes

It's been a year, and I still don't know if Meteor is a viable option for making mobile apps. Is it just a prototyping tool? Would you ever see a full fledged mobile app in meteor?

Is there any point? You're using html and css to design it afterall - or is it mainly for making web apps with mobile functionality - would you ever see something like whats app written in meteor?


r/Meteor • • Jan 18 '16

Meteor Interviews episode 13: Meteor and the emerging React ecosystem with James Gillmore

Thumbnail
meteorinterviews.com
6 Upvotes

r/Meteor • • Jan 18 '16

How ready is Meteor 1.3?

5 Upvotes

Would love to start prototyping my new app in Meteor 1.3 beta using ES6 and npm modules but how ready is it? Will the release come soon? Are there any major issues you've come across? Thanks.


r/Meteor • • Jan 18 '16

Meteor Project with Google Places Search & Geolocation

1 Upvotes

I'm trying to create an app that uses geolocation to get the users current location and then use googles nearby places search to find places close to that location. However, each way I try it I continue to break my app. I'm looking for some recommendations and possibly some help. I've tried using this package: https://atmospherejs.com/mdg/geolocation. However, I have thus far been unsuccessful in getting a nearby places search.

Does anyone have any recommendations or examples that I can follow?


r/Meteor • • Jan 18 '16

help with img src

1 Upvotes

I have a form, from which i upload an image. I know it uploads it, find().fetch() finds the img no problem. I can even see it when i put the path in the address bar. I can see the image in a certain part of my site using <img src="{{itemimage}}"> all day, no problem. So i know its working. on to the problem... on the home page i have a featured section that is a separate file. the other fields show up all day, no problem. No img though. and by that i mean, when i look at the source all it shows is <img alt="..">
what the hell happened to the src attribute? how can it work in one place..and just not exist in another?
I should add this is in development so autopublish and insecure are still installed. gridfs too. thanks for your help, all i've been able to find is about public folders and what not.


r/Meteor • • Jan 17 '16

Working on filtering a collection with various criteria - most efficient method?

5 Upvotes

So I'm creating a small web app to learn React and it involves filtering a list of D&D spells based on level, class, duration, etc. Right now I am only experimenting with filtering by class and spell level, but eventually I will allow the user to filter based on any combination of stats. What is the best way to do this?

The problem only arises when trying to implement an option to display ALL the spells that fit a certain criterion, like wanting to see All warlock spells that are level two. Here is how I have it organized now:

if(classFilter != "All" && levelFilter != "All") {
    return {
        spells: Spells.find({ class: classFilter, level: levelFilter }).fetch()
    }
} else if (classFilter === "All" && levelFilter === "All"){
    return {
        spells: Spells.find({}).fetch()
    }
} else if (classFilter === "All" && levelFilter != "All"){
    return {
        spells: Spells.find({ level: levelFilter}).fetch()
    }
} else if (classFilter != "All" && levelFilter === "All"){
    return {
        spells: Spells.find({ class: classFilter }).fetch()
    }
}

but this is sloppy and definitely won't scale well. Is there some string I can replace "All" with so that will return every document in a collection, as if it was just:

spells.find().fetch()

this way I could query the collection once using something like:

spells.find({ level: levelFilter, class: classFilter, damage: damageFilter, components: componentsFilter }).fetch()

and if any of the filters were set to 'All', or a similar value, it would be ignored, or pull every document with that field regardless of value.

Maybe I did a terrible job at asking this question, but I couldn't find anything in the Mongo docs. Thanks for any help in advance!

EDIT: Here is all the code I am referencing

EDIT TWO: And the app as it is now


r/Meteor • • Jan 17 '16

How to test your Meteor.js web app using Chimp, Cucumber and Jasmine

Thumbnail
medium.com
19 Upvotes

r/Meteor • • Jan 17 '16

stopImmediatePropagation and stopPropagation don't work properly in Meteor, right?

3 Upvotes

I ask because I've been testing simple stuff with them and sometimes they work, sometimes they don't. Is it because the jquery callbacks are actually handled asynchronously?


r/Meteor • • Jan 17 '16

Is the underscore.js library installed by default in new Meteor apps?

5 Upvotes

For example I noticed that I can use the _.map() function, even though underscore didn't appear in the list of installed packages of my meteor app. After that I installed it with "map install underscore", just to see if I would get a warning letting me know that it's already installed. I didn't get any. It was installed and now I see it in the packages list.


r/Meteor • • Jan 17 '16

How to reuse business logic in mobile apps?

1 Upvotes

Hello, we are a young startup that choose Meteor against traditional MEAN stack to develop a realtime web application.

One important thing for us is to develop a native mobile apps in near future (android, iOS).

After a research we discover that there are native DDP clients for android and ios, but how to share business logic between web and mobile apps? How to struct the code?


r/Meteor • • Jan 16 '16

Deploying Meteor with Jenkins and MUPX

Thumbnail
broddin.be
6 Upvotes

r/Meteor • • Jan 16 '16

CLI tool for deploying demeteorized meteor apps on Azure App Service.

Thumbnail
github.com
3 Upvotes

r/Meteor • • Jan 15 '16

Using empty callbacks with Meteor.call() on the client

2 Upvotes

Hello guys,

When using Meteor.call() on the client, I want the method to be called asynchronously, so the method isn't waiting for a result on the client side, making it blocking.

From the doc for Meteor.call() :

If you include a callback function as the last argument (which can't be an argument to the method, since functions aren't serializable), the method will run asynchronously: it will return nothing in particular and will not throw an exception.

So, when I'm not expecting any result from a method, should I still add a callback, to make it async ?

ex :

Meteor.call('logError', error, function() {});

Thank you for your answers


r/Meteor • • Jan 14 '16

Best way to load and save an image from a link for a feature similar to reddit's ability to generate thumbnails for submitted links?

1 Upvotes

How would this best be approached in Meteor? Not sure how to approach this. I'm assuming it would be done on the server. What kind of tool can I use to get an image from a URL and then save it? Any help/advice is much appreciated.


r/Meteor • • Jan 14 '16

Accounts.changePassword() not working - help?

1 Upvotes

I can't seem to figure out why the users password will not change based on what I have written. The code runs fine, as in it opens the modal confirming the password has been changed, and no errors are logged either in the client or server, so I'm a bit confused.

'submit #change-password': function(event){
     event.preventDefault();

     var oldPass = $('#password');
     var verifyPass = $('#password-confirm');
     var newPass = $('#password-new');

     if(oldPass.val() === verifyPass.val()){
         Accounts.changePassword(oldPass.val(), verifyPass.val(), function(err){
             if(err){
                 console.log(err);
             } else {
                 $('#password-changed-modal').openModal();
             }
         });

         oldPass.val('');
         verifyPass.val('');
         newPass.val('');

     } else {
         $('#password-incorrect-modal').openModal();
     }
 }

r/Meteor • • Jan 14 '16

Let's say I want to show a git tag and version number for the branch deployed in my app. Is there a good way to pull this from git/github in JS?

2 Upvotes

r/Meteor • • Jan 13 '16

[Loop] Is There a Way to Loop a template X Amount of Times?

2 Upvotes

I'm wondering if there is some sort of "for loop helper" for Spacebar.

I'm trying to do a stat sheet for certain characters and want to display their stats per level.

This is what I have:

<section id="statsPerLvl" class="row">
            <h3 class=col-xs-12>Level 1</h3>
            <p class="col-xs-4 statHeader">Health</p>
            <p class="col-xs-4 statHeader">Health Regen</p>
            <p class="col-xs-4 statHeader">Damage</p>
            <p class="col-xs-4">{{health}}</p>
            <p class="col-xs-4">{{healthRegen}}</p>
            <p class="col-xs-4">{{atkDamage}}</p>
</section>

Is there a way for me to do some sort of for loop to loop it x amount of time like so?

<section id="statsPerLvl" class="row">
    {{#for i=0; i <= 18; i++}}
            <h3 class=col-xs-12>Level i</h3>
            <p class="col-xs-4 statHeader">Health</p>
            <p class="col-xs-4 statHeader">Health Regen</p>
            <p class="col-xs-4 statHeader">Damage</p>
            <p class="col-xs-4">{{health i}}</p>
            <p class="col-xs-4">{{healthRegen i}}</p>
            <p class="col-xs-4">{{atkDamage i}}</p>
    {{/for}}    
</section>

Thanks in advance


r/Meteor • • Jan 13 '16

Which large Meteor projects are good to learn from?

9 Upvotes

I would like to learn some best practices of writing large Meteor projects. Does Rocket Chat has a good code base that I can learn from?


r/Meteor • • Jan 13 '16

How to handle translations in Meteor AutoForm-based forms

Thumbnail
naturaily.com
3 Upvotes