This is a repository with few simple pages and workers allowing to parse your twitter homeline in search of urls to external resources. To have access to the service you have to be logged in to Twitter account. System is ready to process requests of multiple users.
Twitter App credentials
TWITTER_CONSUMER_KEY=provide_value_for_your_twitter_app
TWITTER_CONSUMER_SECRET=provide_value_for_your_twitter_app
Connection to AMQP for background jobs processing
BUNNY_AMQP_ADDRESSES=localhost:5672
BUNNY_AMQP_USER=guest
BUNNY_AMQP_PASSWORD=guest
BUNNY_AMQP_VHOST=/
BUNNY_CONTINUATION_TIMEOUT=10_000
Connection to service responsible for email delivery
SERVICE_B_URL=localhost:3001
SERVICE_B_BASIC_AUTH_USERNAME=service_b
SERVICE_B_BASIC_AUTH_PASSWORD=service_b
Mail addresses required by delivery service
MAIL_FROM=mail_from
REPLY_TO=reply_to_email_for_headers
-
Set all required environmental variables the way you prefer. For example you can copy then edit .env using .env.example
cp .env.example .env -
Setup connection for postgres. You can copy then edit config/database.yml using config/database.yml.example
cp config/database.yml.example cp config/database.yml -
Install and run RabbitMQ server depends on your operating system. OSX for example :
https://www.rabbitmq.com/install-homebrew.html -
Run application server
rails s -
Running background workers
rake sneakers:run
-
Run specs
rspec -
Run specs with code coverage
COVERAGE=true rspecopen tmp/reports/coverage/index.html -
Launch console if needed
rails c -
Check new code with cops during development
pronto run -r=flay rails_best_practices reek rubocop brakeman -c origin/develop -
Run pronto with cops on whole code like
pronto run --commit=$(git log --pretty=format:%H | tail -1)








