rails commet ajax web2.0

Who knows the fanatastic technology called commet?
Commet is the final weapon to our website much more interactive!!
Of course, you know Lingr!! Very Amazing web service.
Don't you want to develop the web site like Lingr with commet technology??
Here is your fire starter :)
At very first, we should install one plugin which is called "Shooting star!!"
This plugin makes your rails application fly up to the star and your request to the web server directly reflects to the reader of your web application.
OK, that's enough to enlight.
Start the very small tutorial. This tutorial makes your appilcation commet :)

  1. #1: First of all, create your own project
  2. $ rails real_chat
  3. #2: Second, install the shooting star plugin with gem command
  4. $ gem install shooting_star
  5. #3: change the direction
  6. $ cd real_chat
  7. #4: initialize the shooting star, this command reacts nothing but don't worry :)
  8. $ shooting_star init
  9. #5: generate the bottom technology of commet with the generator given by shooting star
  10. $ ruby script/generate meteor
  11. #6: Also you can get the chat scaffold type the following command
  12. $ ruby script/generate chat
  13. #7: Launch your web server!!
  14. $ ruby script/server
  15. #8: Shooting star also needs to be launched
  16. $ shooting_star start

OK that's all, now time to call your buddy and try the application
http://localhost:3000/chat is your brand new comet application.
there is no Ruby code... Agile!! Be agile!! Hahaha!!
Time talk today's dinner dynamically with this application :)

I hope you enjoy the tutorial!!
Thanks a lot :)

Syndicate content