- Ruby version: 2.7.1
- clone the repository using the command:
git clone git@github.com:victorpolicastro/github-api.git
- After clonning it, if you don't have ruby 2.7.1, install it;
- Run the command
bundle
to install the project's gems; - Run
rails db:reset
to create a database and to run all migrations; - Create a file at
config/`` named
application.yml`; - Create a ENV VAR named
GITHUB_API
with the value'https://api.github.com/search/repositories'
. It should look like this:
GITHUB_API: 'https://api.github.com/search/repositories'
- Run
rails s
to start server.
- Run
rspec
to run all specs.
- Run
rubocop
to see all rubocop offences.
You can access the documentation here: https://documenter.getpostman.com/view/6395540/T1LV94XS?version=latest#intro
You can find the api on http://github-repository-finder-00.herokuapp.com (yes, it's a bad name, but all the other ones were taken :'()
Resolve the remaining offenses from Rubocop