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
6 votes
1 answer
3k 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 ...
szier's user avatar
  • 315
1 vote
2 answers
106 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 ...
Ryan McClure's user avatar
2 votes
0 answers
135 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 ...
pikausp's user avatar
  • 219
2 votes
1 answer
33 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 ...
juanp_1982's user avatar
2 votes
1 answer
627 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 ...
Stilltorik's user avatar
3 votes
1 answer
76 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 ...
JCRamires's user avatar
7 votes
1 answer
952 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 ...
user3142695's user avatar
2 votes
0 answers
189 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 ...
Cees Timmerman's user avatar
0 votes
1 answer
2k 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 ...
Taylor Ackley's user avatar
2 votes
1 answer
74 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 ...
Taylor Ackley's user avatar
1 vote
1 answer
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 ...
prelektr's user avatar
1 vote
1 answer
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 ...
fire_water's user avatar
0 votes
1 answer
84 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? ...
wyc's user avatar
  • 565
5 votes
1 answer
667 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 ...
novacog's user avatar
  • 51
3 votes
1 answer
347 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 ...
Warz's user avatar
  • 133
4 votes
1 answer
126 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 ...
user1966211's user avatar
5 votes
1 answer
291 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 ...
JGallardo's user avatar
  • 1,218
2 votes
1 answer
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?: ...
user1966211's user avatar
3 votes
1 answer
87 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 ...
user1880372's user avatar
4 votes
1 answer
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. ...
knownasilya's user avatar
8 votes
1 answer
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 ...
Noah Lehmann-Haupt's user avatar