Avancées dans la boîte à outils Ruby MongoFR 2011

  • Upload
    novelys

  • View
    1.345

  • Download
    0

Embed Size (px)

Citation preview

  • 1. Avances dans la bote outils Ruby Yann Klis, Novelys #mongofr, 23/03/2011, @lacantine

2. Avances dans la bote outils du dveloppeur Ruby Yann Klis, Novelys #mongofr, 23/03/2011, @lacantine 3. #mongofr 4. Yann Klis Novelys, Strasbourg Applications web Ruby/Rails/MongoDB/AWS MySQL, Postgresql, Sphinx 5. MasterSieve Seat (CRM & leads management) iDocus Reunik Expriences avec MongoDB 6. Base de donnes Orient Document Sans schma NoSQL Requtes complexes Map/Reduce MongoDB En bref 7. Phpmyadmin (PHP) 8. RockMongo (PHP) 9. gem install mongo (mongo+bson+bson_ext) Driver Ruby Officiel Gem 10. gem install em-mongo (eventmachine+bson+bson_ext) Autre Driver Ruby Gem 11. mongo & mongo Console & Gem > db.leads.find({city: "BEGLES"}) > database.collection("leads").find(:conditions => {"city" => "BEGLES"}) 12. Object Document Mapper (ODM) Mongoid, MongoMapper, etc. Mapper des objets Anciennement ORM 13. 14. 15. 16. 17. MongoMapper Mongoid ??? Our experience 18. Mongoid Dclaration et associations 19. Mongoid Object lifecycle hooks 20. Mongoid Validations, scope, etc 21. Gems activemodel (!) devise, :version => 1.1rc1 state_machine, :version => >= 0.9.4 carrierwave rspec-rails, :version => >= 2.0.0 factory_girl_rails shoulda mongoid_slug mongoid-paperclip mongoid_session_store mongo-i18n translator transitions static_list sunspot 22. Gems state_machine 23. Plugin production_chain (shameless plug) https://github.com/novelys/production_chain cap stagingdb:dump_and_restore cap productiondb:dump_and_restore cap stagingdb:dump_and_restoreFILE=mongoid cap productiondb:dump_and_restoreFILE=mongoid 24. Gem (soon !) dba_sequence (shameless plug) 25. MongoDB and i18n are in a boat http://www.nicolaracco.com/en/articles/i18n-for-rails-app-with-mongodb 26. Conclusion Last year A lot of things were in a state of flux This year A lof of things are in a state of flux But things are improving Knowledge is increasing in the Ruby community 27. Questions ? http://twitter.com/yannski http://blog.strasslab.net [email_address]