2 rails applications (sqlite and redis based) which use RabbitMQ message broker for publishing blog posts ..

Gaurav 5d827e7346 remove test.rb .. 3 years ago
bin a18853f4df First commit .. Rails messaging app .. uses rabbitmq, redis, sqlite .. 3 years ago
blog a18853f4df First commit .. Rails messaging app .. uses rabbitmq, redis, sqlite .. 3 years ago
blog_red a18853f4df First commit .. Rails messaging app .. uses rabbitmq, redis, sqlite .. 3 years ago
rabbit_config a18853f4df First commit .. Rails messaging app .. uses rabbitmq, redis, sqlite .. 3 years ago
.gitignore a18853f4df First commit .. Rails messaging app .. uses rabbitmq, redis, sqlite .. 3 years ago
.ruby-version a18853f4df First commit .. Rails messaging app .. uses rabbitmq, redis, sqlite .. 3 years ago
Gemfile a18853f4df First commit .. Rails messaging app .. uses rabbitmq, redis, sqlite .. 3 years ago
Gemfile.lock a18853f4df First commit .. Rails messaging app .. uses rabbitmq, redis, sqlite .. 3 years ago
Procfile a18853f4df First commit .. Rails messaging app .. uses rabbitmq, redis, sqlite .. 3 years ago
README.md c1b2f43df8 Readme .. 3 years ago

README.md

This application uses 2 Rails applications and publishes posts created in blog application to blog_red application. Blog uses Sqlite database where as blog_red application uses Redis as a database. RabbitMQ, a multi-protocol message broker is used to publish messages from blog to blog_red application

Make sure you have RabbitMQ, Redis installed and running ..

On Mac OSX

$ brew install rabbitmq
$ rabbitmq-server start

$ brew install redis
$ redis-server
Check dependencies, install required gems and run applications using
$ bin/check_n_run

Open both applications in browser

Blog - http://localhost:3000

Blog Red - http://localhost:3001