The meatier meetup site for meteor meetups
An exercise in pulling data from http://api.meetup.com via serverside Meteor.http requests, to terraform a better life.
Feel free to re-use it for your meetup, hack it or otherwise noodle it to your hearts content, it's free as in Hugs.
To use it for another meetup all you need to do is change the settings.json to include your specific group id and name.
You can find your group id via the meetup api console or searching your meetup page for:
<input type="hidden" name="chapterId" value="your group number here">
{
"meetupApiKey": "get your key from http://www.meetup.com/meetup_api/key/",
"public": {
"group":{
"id":"6576382",
"name": "Meteor London"
}
}
}
meteor --settings settings.json
or use the handy run.sh
The reason for passing in your meetup api key is to keep it out of the source code, so it doesn't get committed, and others can provide there own.
Your meetup api key is supposed to be secret, so we don't go passing it to the client.
server.js
uses the api key to contact api.meetup.com and sync it's interesting data to local Meteor collections.
I've added a prioritised subscription two-step dance so clients on slow connections get the most important data first. Ideally we'd set the main header from the group data, but as an ux optimisation we set it from the settings, so that it appears on page load rather than after the first data subscription.
The rest is experiment. Feel free to add some of your own, submit pull requests or add issues.