rom-rails-skeleton
rom-rails-skeleton copied to clipboard
My Rails app skeleton with ROM and other goodies
rom-rails-skeleton
This is a skeleton of a rails app that uses following gems:
romfor persistencerom-sqladapter for sqlite dbrom-repositoryfor extracting structs from dbdatabase_cleanerfor, well, cleaning the db (in test mode)dry-containerfor application IoC containerdry-auto_injectfor auto-DI from the containerrspecfor testsfigarofor setting up env vars in test and development mode
Important places
config/initializer/rom.rbis where we configure ROMconfig/initializer/my_app.rbis where we configure our app containerlib/my_appa simple app container which also has access toRails.application
TODO
- add controller with some views and a capybara spec
- show how to use
dry-auto_inject