Intro to Merb

67
MERB

description

An introduction to Merb given at the Atlanta Ruby User Group, Oct 8, 2008.

Transcript of Intro to Merb

  • MERB
  • HISTORY
  • Mongrel + ERB
  • Ezra Zygmuntowicz EngineYard
  • progress towards VERSION 1.0 coming Oct 10th
  • MANY CONTRIBUTORS CORE CONTRIBUTORS Yehuda Katz, Michael Klishin, Carl Lerche, Fabien Franzel, Michael Ivey, Matt Aimonetti... AND MANY OTHERS including me :)
  • MERB IS
  • WEB FRAMEWORK
  • LIKE RAILS
  • ONLY AWESOME
  • MVC
  • (looks kinda like rails to me)
  • awesome!!1!
  • ORM-agnostic
  • Test Framework Agnosticism
  • Plugin Architecture
  • FAST LIGHTWEIGHT POWERFUL
  • RACK
  • CONFIGURATION & CONVENTION
  • DIFFERENCES
  • MVC A Closer Look
  • Models
  • DataMapper Sequel ActiveRecord
  • Views
  • Very similar to Rails
  • CONFIGURABLE with plugins like merb-haml
  • Controllers
  • RENDER (or display et al) is required
  • PLUGINS
  • RubyGems CORE merb_* MORE merb-*
  • merb-oauth merb-openid merb-auth merb_jquery
  • RACK
  • CONFIG
  • A MERB APP
  • PROS/CONS
  • VERY FAST
  • LIGHTWEIGHT
  • POWERFUL
  • FRESH
  • RUBY
  • MORE EFFORT
  • NOT RAILS
  • MISSING PLUGINS (well, for now)
  • DEPLOYMENT
  • weee
  • HARDEST PART IS setting up cong/deploy.rb
  • RUN IT
  • $ merb -d -p 4000 -c 3 -a thin -l info -L log/production.log -e production
  • -d daemonize -p N port N -c N N cluster processes -a S S adapter (thin, mongrel, etc) -l S log at level S and above -L S log to S le -e S run in S environment
  • APPS
  • Panda Defensio Scout SproutCore et al
  • RESOURCES
  • http://merbivore.com/ http://merbist.com/ http://merbunity.com/ http://merb.4ninjas.org/ IRC: #merb http://merb.lighthouseapp.com/
  • SUMMARY
  • HAHA LOL Merb Rails