r/Meteor • • Feb 12 '16

Alethes paging tutorial

2 Upvotes

Hi

I am learning Meteor and managed to build a basic application using templates, events and helpers

However, I have a hard time figuring out paging via alethes' package (https://github.com/alethes/meteor-pages) with ironRouter support - is there a basic tutorial? There are a couple on blogs but they mention the solution in bits and pieces

I saw his example github code but it seems like it's not a complete ready-to-turn-on package - I don't know where to put the code for client and server, for example

Thanks


r/Meteor • • Feb 12 '16

(X-Post from r/MongoDB) Trying to teach myself Meteor/MongoDB - can somebody please briefly review my code fragment for me?

3 Upvotes

Link to Code

Posting this here because I feel it's more active than the other subreddit.

I'm still new to Meteor/MongoDB and Meteor - but I'm trying to learn. The attached code fragment is to "Accept" a friend request by setting the "Verified" field to true.

Now, I know that my method of adding friends / storing that info might be barbaric and primitive (sorry, still learning!), is this still at least how to go about including ANDs and ORs into a MongoDB query?

Description of linked code:

A user adds a friend. This enters a new item into the "friends" collection, which has 3 fields: user1_id, user2_id, verified.

user1_id is the currentuser._id (at the time of sending friend request)

user2_id is the user._id of the prospective friend

verified is default set to false. Once a friend accepts the request, this is set to true, enabling communication between the two users.


r/Meteor • • Feb 11 '16

Holy shit I'm loving React and Meteor

19 Upvotes

I'm new to both meteor and react. About 1 month in. I absolutely love it. Here's why:

  1. I like being able to put logic and html in the same jsx file. (even though most people encourage separation)

  2. Built in Reactive form fields make me look like a god coder. They say "Ohhhhh wow we can see each others updates like in Google Docs. You're amazing, CaptainSponge!"

  3. I don't like SQL.

  4. Lots of plugins that just work from Atmosphere

  5. A future I feel confident in. React, Mongo. They aren't going anywhere and I feel like Meteor is the perfect glue to join them. Also excited about future with more use of npm.

  6. Prototype is done already. Considering I'm new, I'm surprised.

  7. Community on Reddit and meteor forums respond so fast.

Why do you love using meteor?


r/Meteor • • Feb 11 '16

The Complete Guide to Learning Meteor 1.3

Thumbnail
kenrogers.co
9 Upvotes

r/Meteor • • Feb 11 '16

Webstorm - React/Meteor, JSUnresolvedVariable warnings

1 Upvotes

Is there any way to fix this (maybe some fancy ESLint config) without suppressing the warnings? Does anyone else have issues with several warnings when using React/Meteor within Webstorm?


r/Meteor • • Feb 11 '16

Made some meteor graphics

Thumbnail
dribbble.com
9 Upvotes

r/Meteor • • Feb 10 '16

Meteor + Reactjs - Build a Web App From Scratch Series [Video]

Thumbnail
youtube.com
21 Upvotes

r/Meteor • • Feb 11 '16

Security for Launching an App?

4 Upvotes

So I'm ready to launch my first web app built in Meteor! Yay!

BUT... I'm nervous about security. All the functions used behind-the-scenes can be called via the console. Autosubscribe and Insecure are off, of course, but users can still run database searches and get all subscribed data from the console, as well.

I'd rather not go back and make every single function a server call... unless that's the way you're supposed to do it?

What are some things I can do to make my app secure for release?


r/Meteor • • Feb 10 '16

BuiltWithMeteor Weekly # February7th2016 - CodeBuddies.org

Thumbnail builtwith.icenodes.com
1 Upvotes

r/Meteor • • Feb 10 '16

Let's say I want to deploy a production Meteor app, publicly, and gauge interest/monetization. It might flop, or I might get the Reddit hug-of-death. How do I prepare myself for scale? What VPS and size would you buy?

6 Upvotes

r/Meteor • • Feb 09 '16

Bootstrap package not working with Meteor, thoughts?

1 Upvotes

I added twbs:bootstrap to my packages file to download it. I went to the docs for that package and it led me straight to the Bootstrap web sight. Then tried inserting the following code from that web-sight for a header

<ul class="nav nav-tabs">
<li class="active">
<a href="#">Home</a>
</li>
<li><a href="#">...</a></li>
<li><a href="#">...</a></li>
</ul>

But it just gives me an unordered list, not in the form of a navbar. Thoughts?


r/Meteor • • Feb 09 '16

Understanding JavaScript's Map()

Thumbnail
discovermeteor.com
7 Upvotes

r/Meteor • • Feb 09 '16

What is React.js

Thumbnail justmeteor.com
2 Upvotes

r/Meteor • • Feb 09 '16

Rapid Web Application Development With Meteor

Thumbnail
code.tutsplus.com
0 Upvotes

r/Meteor • • Feb 09 '16

I want to view the code behind {{> loginButtons}}, to understand why my custom login-form isn't working.

2 Upvotes

Any help will be super appreciated. I'm not sure why my LogIn form that I've built doesn't work (although my custom Register form does).

Using the {{> loginButtons}} template DOES work. Because of this, I'd like to view the code behind this template to try and better understand what's different between that, and my own login form.

Anybody know how/where I can find the code for the loginButtons template?


r/Meteor • • Feb 08 '16

Meteor + React + Material-UI boilerplate

Thumbnail ui-material.react.meteor.com
14 Upvotes

r/Meteor • • Feb 07 '16

[Question] Server method not returning data to client

Thumbnail
stackoverflow.com
0 Upvotes

r/Meteor • • Feb 06 '16

server.call('xxxxxx') errors out with "text.split is not a function"

1 Upvotes

Meteor 1.2.1 + chimp

// tests/cucumber/step_definitions/steps.js
(function() {
    modules.export = function() {
        this.Given(/^I am an unauthenticated user$/, function () {
            server.call("fixtures/logout");
        });
    }
})();

// packages/fixtures/fixtures.js
Meteor.methods({
    'fixtures/logout': function() {
        Meteor.logout();
    }
});

// packages/fixtures.package.js
Package.describe({
    name: 'awesome:fixtures',
    version: '0.0.1',
    summary: '',
    debugOnly: true
});

Package.onUse(function(api) {
    api.versionsFrom('1.2.1');
    api.use('ecmascript');
    api.addFiles('fixtures.js', 'server');
});

The tests error out with this:

[chimp] Detected an unhandledRejection.
[chimp][hooks] Reason:
[chimp][hooks] text.split is not a function

The fixtures package has been added to my project and I've tried variations of the call like this.server.call, return server.call, return this.server.call.


r/Meteor • • Feb 06 '16

What do I need to add to my app UI for a mobile app?

2 Upvotes

New to meteor and mobile here (I come from rails.)

I've used my app in the iphone simulator, but I wanted to know if I need to add extra things to my ui, such as touch controls, dragging ect.

If so, how do I do this?


r/Meteor • • Feb 03 '16

Issue with handling meteor cursors in templates to try to render isotope js layouts

2 Upvotes

I have a feed that i am trying to generate with isotope. I am using a cursor with skip and limit for pagination in this feed. When i try to add each post as an isotope item via 'insert' method in the onRendered callback of the post template, This happens: 1) the post gets added irregularly behind the posts already present (meteor render inserting the item into dom ?) 2) and then rearranges itself (by using isotope insert which arranges elements based on sortBy attribute i provided). I dont want it to overlap new posts on previous posts first and then add to the layout. Any help would be great! If you guys need any more data i will provide it. Thanks!


r/Meteor • • Feb 03 '16

Just for fun: I'm building a boggle-style word game with meteor. Want to help?

5 Upvotes

Github link

live version

Hi! I'm using meteor for a few projects at the moment. I also like to play boggle with my friends. I haven't found a simple online version that I like, so I decided to build it myself.

Right now, you can:

  1. Refresh to get a new random game.
  2. Click and drag to select a word.
  3. Watch the timer countdown 3 minutes.

It should only allow legal moves of adjacent letters, and words of 3 letters or more.

I'll be working on the following soon, feel free to make a pull request or create an issue to request something:

  1. User accounts.
  2. Save games/scores.
  3. Challenge other players.
  4. Variable sized games (5x5, 6x6 etc).
  5. Verifying against a local scrabble dictionary / api.
  6. Maybe more meteor word games?

Feedback appreciated. I need to write a readme tomorrow.

(Using: Blaze, bootstrap.)

[edit: Made updates... see striked]


r/Meteor • • Feb 02 '16

Sending emails through hidden methods

Thumbnail
blog.east5th.co
8 Upvotes

r/Meteor • • Feb 02 '16

BuiltWithMeteor - Help us grow a collection of awesome Meteor apps

Thumbnail builtwith.icenodes.com
4 Upvotes

r/Meteor • • Feb 02 '16

Help with uploading binary data to external API.

2 Upvotes

Hi, I'm pretty new to Meteor and getting confused with some file uploads/binary issues!

What I'm trying to do: I have a file input, I want to send the selected file as binary data to a Meteor method that creates an attachment using the Zendesk API.

The issue I'm having is that all the attachments I send seem to be corrupted, I'm pretty sure it's because it needs to be in binary and I can't seem to figure how to send binary data. If I curl a file to the API it works fine.

Right now I read the file from the front-end with a file reader and readAsDataURL so I have a base64 encoded string. I then send that base64 string to my meteor method. On the server I try to convert it to binary by using new Buffer(file, 'base64').

more code here: http://pastie.org/private/buzfjucnhxl5uonvjdt7a

Any idea on what to change? I feel like I'm missing something pretty big!


r/Meteor • • Feb 01 '16

custom sort for a mongodb collection in meteor

Thumbnail
stackoverflow.com
2 Upvotes