sstarr / langotron

Find a GitHub user's favourite language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lang-o-Tron

Code Climate CircleCI

An app to find a GitHub user's favourite language.

Screen recording

Requirements

  • Ruby 2.4.1

Setup

  1. Create the database: rake db:create db:schema:load
  2. Create environment variables for your GitHub API credentials (GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET)
  3. Start the server: bin/rails s

Testing

We're using MiniTest, with VCR to mock calls to the GitHub API.

  1. Run the tests: bin/rails test

TODO

  • 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

Done

  • Add some basic styling to the front end

About

Find a GitHub user's favourite language.


Languages

Language:Ruby 59.3%Language:CSS 24.1%Language:HTML 14.3%Language:JavaScript 2.3%