Skip to content

rwilcox/chatchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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?

  1. Install Meteor
  2. Depending on your OS you may need to install mongodb
  3. gem install foreman
  4. foreman run

Wait, what????!!!

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.

I also know for anything more than a chat app I would have dealt with needing to create a REST API on the Rails side, do AJAX Javascript calls, and I'd want to maintain two seperate classes for the same thing (one in Ruby, on in JS). I know, because I've done all that for past projects.

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.

chow-chow!??!

It's a Pennsylvania thing, usually Amish but not necessarily.

It comes in jars:

It looks like:

About

A chat app, in Meteor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published