Questions tagged [meteor]

This tag is for questions written using the Meteor open-source web framework. These questions should also be tagged with [javascript].

Filter by
Sorted by
Tagged with
1
vote
0answers
83 views

Unit testing for sending messages

I'm new to testing in Meteor, so I'm worried if my implementation is not going in the right directions. I've written a unit test for my send method which sends a ...
6
votes
1answer
1k views

Upvote/downvote toggle

I'm sure there is a better way to implement this feature. I am making an app that allows a user "upvote" or "downvote" a post. Right now, the code works and disables the upvote button if pressed and ...
1
vote
2answers
91 views

Using promises to GET and process data

I'm working on a Meteor application which integrates a user's contacts from external sources (Google in the case of this example). I'm currently writing the server side code to retrieve this data and ...
2
votes
0answers
93 views

FlowRouter auto-redirect on login page

The site should be accessible only to signed-in users. I'm making sure I publish and enable data manipulation to only those, but I wanna make sure even the app structure won't be visible. What I did ...
2
votes
1answer
29 views

Displaying a list of attributes and differentiate them from attributes already selected

attributes is an array with all attributes selected by the user. attributeList is a Mongo collection declared in [root]/lib and ...
2
votes
1answer
555 views

My first Meteor autocomplete

I am trying to learn Meteor, so I tried to write a basic location autocomplete. Currently, given a string, it will request suggestions from https://photon.komoot.de/ (amazing free location ...
3
votes
1answer
73 views

Adding genres and themes from work

Codacy is telling me this method has a complexity of 13. I need some tips on how to reduce it, more specifically inside the forEach loop. I've already changed it ...
7
votes
1answer
772 views

Check for idle status in meteor by using 'setInterval'

I'm trying to check in my meteor app for a defined timeout (idle user) to show a modal. But the way I did it seems a bit too complicated to me. I'm doing a ...
2
votes
0answers
170 views

REST proxy in Meteor

I built a simple proxy using Meteor and its Iron Router. It currently fails at passing through other than 200 or 500 status codes, which I guess suffices. Is this ...
0
votes
1answer
1k views

Flattening a 2D array to use map/reduce

I have been trying to get better at functional programming, which includes understanding map/reduce. I wrote a function intended to fill an autocomplete with values. The challenge I was encountering ...
2
votes
1answer
67 views

Create an array of categories from comma-seperated text input

This code works just fine, but could obviously be more elegantly written. The basic idea is to create an array of categories from a text input. The code splits up the text input by commas to create ...
1
vote
1answer
1k views

Meteor jquery-ui slider integration

I'm struggling to integrate a jquery-ui slider widget into my Meteor app. The idea is to have a slider value in a Mongo collection and the slider needs to be reactive (automatically synced between ...
1
vote
1answer
1k views

Meteor Form Submission

I am hoping a Meteor guru can please review my code below and verify if I am properly using return false and ...
0
votes
1answer
77 views

JavaScript naming and grouping

I'm fairly new to JavaScript. I would like some feedback on the naming and grouping of the following code. Is there any change that will make it more readable? ...
5
votes
1answer
491 views

Mancala Game made with Meteor

This is my first project I've written totally from scratch. It hasn't been styled yet so it's pretty ugly and it's missing some features but the core functionality works. I would love to get feedback ...
2
votes
1answer
336 views

Filter by a distinguishing field when making publications using meteor

In my publications with meteor.js, I find myself repeating the same style of code and would like a cleaner approach. For example: I have a users collection that ...
4
votes
1answer
123 views

Angular Modular File Structure

My intention is to separate components on a file basis. For example, I want a specific controller to have it's own file (Same goes with services, filters and directives). Of course, files will be ...
5
votes
1answer
281 views

Review of HTML markup for this blog concept

I am creating a blog concept with this layout on CodePen Here is my current code in development ...
2
votes
1answer
2k views

Angularjs Module Registration Structure

I'm using meteor and angular. Since I can't add modules after the angular bootstrap, I made a workaround and somewhat not satisfied with the way it was coded. How can I improve this?: ...
3
votes
1answer
84 views

Better way to write list of places program

I wrote some code using meteor, which is working, but I don't know if I did it the best way. I'm asking for opinions on other ways to perform this task. It's just a list of places. You can fill the ...
4
votes
1answer
6k views

Working with forms in Meteor, using selectors for every input

I'm trying to work with forms, and just getting a grasp on JavaScript. Basically I'm unsure if there is a more reusable way to handle forms with Meteor/jQuery. ...
8
votes
1answer
5k views

Nested template variable access in Meteor

I'm a brand new JavaScript guy (currently playing with Meteor) and would love some critique of the following: The goal: I've got two collections Buckets Widgets. I'm displaying a ...