Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

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

1,549 views

Published on

  • Be the first to comment

  • Be the first to like this

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

  1. 1. Avancées dans la boîte à outils Ruby Yann Klis, Novelys #mongofr, 23/03/2011, @lacantine
  2. 2. Avancées dans la boîte à outils du développeur Ruby Yann Klis, Novelys #mongofr, 23/03/2011, @lacantine
  3. 3. #mongofr
  4. 4. Yann Klis Novelys, Strasbourg Applications web Ruby/Rails/MongoDB/AWS MySQL, Postgresql, Sphinx
  5. 5. MasterSieve Seat (CRM & leads management) iDocus Reunik Expériences avec MongoDB
  6. 6. Base de données Orienté Document Sans schéma NoSQL Requêtes complexes Map/Reduce MongoDB En bref
  7. 7. Phpmyadmin (PHP)
  8. 8. RockMongo (PHP)
  9. 9. gem install mongo (mongo+bson+bson_ext) Driver Ruby Officiel Gem
  10. 10. gem install em-mongo (eventmachine+bson+bson_ext) Autre Driver Ruby Gem
  11. 11. mongo & mongo Console & Gem > db.leads.find({city: "BEGLES"}) > database.collection("leads").find(:conditions => {"city" => "BEGLES"})
  12. 12. Object Document Mapper (ODM) Mongoid, MongoMapper, etc. Mapper des objets Anciennement ORM
  13. 17. MongoMapper ↓ Mongoid ↓ ??? Our experience
  14. 18. Mongoid Déclaration et associations
  15. 19. Mongoid Object lifecycle hooks
  16. 20. Mongoid Validations, scope, etc
  17. 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
  18. 22. Gems state_machine
  19. 23. Plugin production_chain (shameless plug) https://github.com/novelys/production_chain cap staging db:dump_and_restore cap production db:dump_and_restore cap staging db:dump_and_restore FILE=mongoid cap production db:dump_and_restore FILE=mongoid
  20. 24. Gem (soon !) dba_sequence (shameless plug)
  21. 25. MongoDB and i18n are in a boat http://www.nicolaracco.com/en/articles/i18n-for-rails-app-with-mongodb
  22. 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
  23. 27. Questions ? http://twitter.com/yannski http://blog.strasslab.net [email_address]

×