https://github.com/solnic/rom-rails-skeleton
My Rails app skeleton with ROM and other goodies
https://github.com/solnic/rom-rails-skeleton
Last synced: 26 days ago
JSON representation
My Rails app skeleton with ROM and other goodies
- Host: GitHub
- URL: https://github.com/solnic/rom-rails-skeleton
- Owner: solnic
- Created: 2015-09-14T22:24:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-30T00:45:35.000Z (about 9 years ago)
- Last Synced: 2025-04-18T15:16:29.185Z (about 1 month ago)
- Language: Ruby
- Size: 129 KB
- Stars: 35
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rom-rails-skeleton
This is a skeleton of a rails app that uses following gems:
* `rom` for persistence
* `rom-sql` adapter for sqlite db
* `rom-repository` for extracting structs from db
* `database_cleaner` for, well, cleaning the db (in test mode)
* `dry-container` for application IoC container
* `dry-auto_inject` for auto-DI from the container
* `rspec` for tests
* `figaro` for setting up env vars in test and development mode## Important places
* `config/initializer/rom.rb` is where we configure ROM
* `config/initializer/my_app.rb` is where we configure our app container
* `lib/my_app` a simple app container which also has access to `Rails.application`## TODO
* add controller with some views and a capybara spec
* show how to use `dry-auto_inject`