Eat your chow-chow while you chat-chat, with your coffee-coffee
chatchat is a simple "see what Meteor can do" example by Ryan Wilcox.
It's also in CoffeeScript!
So, what is it again?
It's a simple chat app.
How do I run it on my machine?
- Install Meteor
- Depending on your OS you may need to install mongodb
gem install foreman
I'm using a Procfile and Foreman to start the app up. Normally Meteor talks to Mongodb just fine, but for some reason it needs some help in my case (an environmental variable). Foreman takes care of that for me.
(That took a good big half hour to figure out...)
I've used Foreman in pretty much every Rails project I've been on for the last 18 months (or so) and I can't imagine starting up a web stack without it. Because someone always forgets to start the Z server, and wonders about some obscure error.
Running on my machine is BORING! CAN I HAS DEMO?
It's deployed! chatchat.meteor.com
So, what do you think about Meteor?
It's pretty cool. I know if I tried to do this with Ruby on Rails it would have taken me twice as much code (and that's if I had cheated and used Pusher.
With Meteor... well, I have 50 lines of Coffeescript logic and 50 lines of view code. Time to go from 0 Meteor knowledge (PLUS very rusty Coffeescript) to a complete chat-chat implementation took me about 3 hours.
Oh yeah, and some of the magic reminds me of Cocoa Bindings / Key Value Observing. (Thanks, desktop Cocoa programming experience!)
Yes, it's not big, and maybe could be structured better
In a bigger app I would have split things up better.
It's a Pennsylvania thing, usually Amish but not necessarily.
It comes in jars:
It looks like: