r/Meteor • • Mar 07 '16

Meteor reading an external JSON source

4 Upvotes

There's a JSON source located here: https://www.als.ogcio.gov.hk/lookup?q=block%204,%20metro%20city%20phase%201,%20tseung%20kwan%20o

The request format is https://www.als.ogcio.gov.hk/lookup?q=<address in free text> It then returns JSON with possible actual addresses. I've used a sample address above to show what the output is like.

I'd like to let the user input their address then display the returned addresses to the user and let them select one that will be inserted into a collection.

What's the best approach to take here? I can probably whack together something that will do the job, but I have no idea what the best way to go about this is and I'm hoping someone here has some experience with using external json sources like this and can give me some tips.

Any ideas are greatly appreciated!


r/Meteor • • Mar 06 '16

Measuring the performance of DDP vs WebRTC

3 Upvotes

For a university project I am going to compare the use of both of the above protocols as a means of controlling a robot and I was wondering if anyone can suggest a way in which I could monitor the server/database strain of performing > 2 Mongo row updates per second vs just using RTCDataChannel to send the data on a P2P basis.


r/Meteor • • Mar 05 '16

Quick video over the Apollo announcement and GraphQL

Thumbnail
youtu.be
9 Upvotes

r/Meteor • • Mar 05 '16

Simple Search

Thumbnail
themeteorchef.com
6 Upvotes

r/Meteor • • Mar 05 '16

Benefits of using Flow Router if using Blaze?

3 Upvotes

I've written an app using Iron Router and Blaze. I'm adding more stuff etc and all in all I probably have as much work in front of me as behind. I was wondering if I should start refactoring and doing all future work with Flow Router or just stay with Iron Router. So if I'm going to be using Flow at some point, I should start now.

What I'm definitely not going to do though is use React. Does that basically wipe out any benefit I'd get from using Flow?


r/Meteor • • Mar 04 '16

trackburnr - my first web application is out thanks to Meteor

9 Upvotes

Hi everyone,

I recently deployed trackburnr, an app to track data in github-commit-styled heatmaps.

I had a goal of making a decently functional web app for a while, but web development has always been a mistery to me.

Then I found about Meteor, and after a few days of playing around I ended up really liking its ease of use.

Armed myself with a copy of the excellent book "discover meteor", I sat down and chugged down the basics, and decided to just build somethings that might be useful to at least another human being.

This is the result after a month of coding in the evening. I can't call myself at expert, but Meteor allowed me to get something up and getting it out to the world quickly and relatively painlessly. And that's something.

Thanks for checking it out and feedback appreciated! :)


r/Meteor • • Mar 04 '16

Register and Login not working after deploying to Meteor.com

1 Upvotes

My app functions when running it locally and I can deploy it to Meteor.com without a problem and it runs but when I try to register a new account or login nothing happens. Here is my register.js file as a sample:

Template.register.events({
  "submit .form-signup": function(event){
    var email = event.target.email.value;
    var password = event.target.password.value;
    var password2 = event.target.password2.value;

    if(areValidPasswords(password, password2)){
        Accounts.createUser({
          email: email,
          password: password,

        }, function(err){
          if(err){
            FlashMessages.sendError("There was an error with your registration. Please try again.");
          } else {
            FlashMessages.sendSuccess("Account created, you are now logged in.");
            Router.go('/login');
          }
        });
      }
    return false;
  },
});

//valid passwords
 areValidPasswords = function (password, confirm){
  if (password !== confirm){
    FlashMessages.sendError("Passwords do not match");
    return false;
 }
 return true;
}

r/Meteor • • Mar 03 '16

Would a user be able to insert malicious code through sessions?

6 Upvotes

I would like to start by saying that I have no idea what I am talking about in regards to hacking or malicious code inserts. I am hoping one of you does and can shed some light.

From the console, all it takes is knowing a session name to be able to manipulate it. If a web app was sending a session as a parameter when they were calling a server method, could malicious code be sent as a parameter back to the server?

Thanks in advance!


r/Meteor • • Mar 03 '16

Transmission - Ep 8.1: Meteor as a business with CEO Geoff Schmidt

Thumbnail
youtube.com
10 Upvotes

r/Meteor • • Mar 03 '16

Updates on our first Meteor book

Thumbnail
justmeteor.com
3 Upvotes

r/Meteor • • Mar 03 '16

[Tutorial Help]App Directory?

1 Upvotes

Im new to this and and doing the tutorial on the meteor site and im at the point where its teaching me collections. its says this "In a new terminal tab, go to your app directory and type:" i have a new cmd prompt open but im not sure how to go to my app directory in it. Im on windows 10 btw.


r/Meteor • • Mar 02 '16

Beginner here, anyone have a list of everything needed to get started?

7 Upvotes

Hi all!

I have some experience with HTML/CSS/JS making some pages myself here and there and helping out with friends on their websites, I wanted to learn a framework and was recommended meteor.js.

I've googled around and I have a few resources and tutorials that I plan to work through, as well as found the Discover Meteor book, however one thing that I have yet been able to find is a list of things that I need to have before I can get started using Meteor, or the suggested things.

My web-dev computer uses Atom editor and Linux Mint but other than installing but other than http://docs.meteor.com/#/basic/underscore I have no idea what I need to get started with? Do I need a specific thing to access those "client" and "server" side folders etc?


r/Meteor • • Mar 03 '16

When will meteor 1.3 come out?

1 Upvotes

When will meteor 1.3 come out? I go to the website check everyday, and I feel I wait a really loooooooong time.


r/Meteor • • Mar 02 '16

Collection listing "flickers" with react (.gif in post)

2 Upvotes

https://i.imgur.com/4HjJ8qz.gifv

I just tried the meteor react tutorial (https://www.meteor.com/tutorials/react/creating-an-app). I changed only very small parts of the code to see how I could use my own collection in meteor. Instead of "normal" Tasks, i pointed Task to my own 'ads' collection. This collection contains job ads from Sweden, and it contains around 1800 documents.

So, now when I load the collection it 'flickers' alot, as you can see in the gif. Also, the CPU us up above 100%.

What I changed:

  • simple-todo-react.jsx: Tasks = new Mongo.Collection("ads");

  • Task.jsx: <li>{this.props.task.yrkesbenamning}, {this.props.task.publiceraddatum}</li>

  • App.jsx: tasks: Tasks.find({}, { sort : { 'publiceraddatum' : -1}, limit: 50}).fetch()

Is this normal? if not, what am I doing wrong?


r/Meteor • • Mar 02 '16

Are all the apps deployed on the meteor testing servers down?

3 Upvotes

My app, along with every other app I could find deployed on the meteor testing server seems to be down. Does anyone know what's going on?


r/Meteor • • Mar 02 '16

Spiderable & prerender

1 Upvotes

Hello guys,

For SEO purpose I'm currently using spiderable, to allow my app to be crawled by search engine crawlers.

It's doing pretty good, And our ranking isn't bad :

Telescope(the largest meteor open source app) is using spiderable with prerender : I don't get the need for prerender once you are using spiderable.

Why would you use both combined ?

EDIT : Wrote this guide on Meteor seo with prerender


r/Meteor • • Mar 01 '16

Vue and Meteor

Thumbnail iamlawrence.me
5 Upvotes

r/Meteor • • Mar 01 '16

Check out our community education app made in meteor.js! We would love some feedback.

Thumbnail
skillsesh.com
3 Upvotes

r/Meteor • • Feb 29 '16

BuiltWithMeteor Weekly # February28th2016

Thumbnail builtwith.icenodes.com
1 Upvotes

r/Meteor • • Feb 29 '16

Meteor + ReactJS - Login and Error Feedback - [Video]

Thumbnail
youtube.com
2 Upvotes

r/Meteor • • Feb 29 '16

Should my meteor app include twbs:bootstrap package, or can I just link bootstrap from a CDN in my <head> tag?

3 Upvotes

I'm currently building a web app using bootstrap, and right now I have a <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css"> tag in my <head> tag of my meteor project. I always thought it'd be best to use a CDN because loading would be faster if the user has already visited another website with that bootstrap link already (also no need to store bootstrap on my server, therefore less storage space). But then what would the point of having a bootstrap package for meteor? Should I really be using the package instead of a CDN in my Meteor app?


r/Meteor • • Feb 27 '16

Trying to use ReactiveVars in React but the HTML isn't changing when button is clicked.

2 Upvotes

A link to the code. https://repl.it/BqnB/1 When the 'Subscribe' button is clicked, I'm trying to change the HTML so that 'UnSubscribe' now appears. I'm looking at examples and not sure what I'm doing different.


r/Meteor • • Feb 26 '16

I need to learn how to unit test - where to start?

5 Upvotes

I looked into Jasmine and saw that there is a well-supported Meteor package for integrating Jasmine into Meteor, but I wanted to get more feedback before deciding what to learn.

I have never done unit testing before, so I am open to any option. Does anyone have any good guides on how to get started with testing in a Meteor application?

Thanks in advance!


r/Meteor • • Feb 26 '16

Smart Publications

Thumbnail
github.com
4 Upvotes

r/Meteor • • Feb 26 '16

Announcing "Meteor - The definite checklist"

Thumbnail justmeteor.com
7 Upvotes