An app to find a GitHub user's favourite language.
- Ruby 2.4.1
- Create the database:
rake db:create db:schema:load
- Create environment variables for your GitHub API credentials (
GITHUB_CLIENT_ID
andGITHUB_CLIENT_SECRET
) - Start the server:
bin/rails s
We're using MiniTest, with VCR to mock calls to the GitHub API.
- Run the tests:
bin/rails test
- Implement error handling:
- The GitHub user isn't found
- They don't have any repositories
- The connection to the API fails
- Paginate the accounts listing
- Make accounts stale after a given time so that, when queried, their favourite language is recalculated with a new call to the API
- Present more data about an account's language preferences - perhaps a pie chart showing all the languages they use
Add some basic styling to the front end