This is a skeleton of a rails app that uses following gems:
rom
for persistencerom-sql
adapter for sqlite dbrom-repository
for extracting structs from dbdatabase_cleaner
for, well, cleaning the db (in test mode)dry-container
for application IoC containerdry-auto_inject
for auto-DI from the containerrspec
for testsfigaro
for setting up env vars in test and development mode
config/initializer/rom.rb
is where we configure ROMconfig/initializer/my_app.rb
is where we configure our app containerlib/my_app
a simple app container which also has access toRails.application
- add controller with some views and a capybara spec
- show how to use
dry-auto_inject