This application was made using Ruby on Rails 6 with a lot of nice gems!
To check the application working access: Tweet Hunter
-
[Dependencies] Check if you have installed Ruby 2.6.0, Bundler 2 (or greater), Node 8.16.0 (or greater), redis and postgres (check if these last two are running).
You may want to install Ruby 2.6.0 using rvm as well Node 8.16.0 with nvm!
-
If you installed Ruby 2.6.0 using rvm, you may need to update Bundler with
gem update --bundler
-
Install yarn from npm:
sudo npm install --global yarn
-
You need to install a system package called
libpq
something. In Arch Linux is calledlibpqxx
, in Ubuntu you may also installlibpqxx-dev
.
-
-
Clone and
cd
this project.Always run the commands from the project folder!
-
Run
bundle install
. -
Run
figaro install
. -
Insert your Twitter API credentials in
config/application.yml
, like so:consumer_key: XXXXXX consumer_secret: XXXXXXX access_token: XXXXXXXX access_secret: XXXXXXXX
-
Create a database in postgres called tweet_hunter.
You may customize who is the user in config/database.yml
, but you may also skip this!
-
Run
yarn install --check-files
. -
Run
rake db:migrate
from the project folder. -
Run
rake environment tweet_stream:start
in another terminal. -
Run
INTERVAL=0.1 QUEUE=* COUNT=2 rake environment resque:work
in another terminal. -
Run
rails s
and check http://localhost:3000/ . -
Run tests with
rspec
.
-
Ruby 2.6
-
Rails 6
-
CircleCI
-
Codacy
-
RSpec
-
Rubocop
-
Resque and Resque-scheduler (gems)
-
Solargraph (Language Server)
-
TreeTop (gem)
-
ActsAsParanoid (gem)
-
Twitter API (gem)
-
VCR (gem)
-
Bootstrap
-
Sorbet
-
Heroku