This is an example of a working ecosystem of services and client applications that interact using roar and roar-rails gems. The main idea is to show how one might use those libraries to build such a system.
- book_of_orcharding - contains all the domain / business rules about fruit management
- orchard - serves us as the persistence layer for the orcharding rules
- tutti_frutti - exposes orcharding rules as a json api
- smoothie_mixer - rails project that consumes the api and delivers delishes fruit smoothies
tutti_frutti (api server):
to generate config/sunspot.yml rails g sunspot_rails:install
to generate config/mongoid.yml rails g mongoid:config
start tutti_frutti service by running: bundle exec rails s -p 9292
start smoothie_mixer client by running: bundle exec rails s
verify mongo service is running or run with: sudo mongod
verify rails config/sunspot.yml points port to 8983 in tutti_frutti (api server) run bundle exec rake sunspot:solr:run