- Enter two github usernames
- List each account's repos in order of stars
- Display total stars for each user
- Display an average "stars per repo" for each user
- Declare a winner
Try it here: http://code-star.divshot.io/
- Clone this repo.
npm install -g webpack
This gives you thewebpack
command to build the project.cd
into the repo directory andnpm install
.- Run
webpack
in the terminal to build the project. cd
intopublic/
and serve the assets (I usepython -m SimpleHTTPServer
), and visit the appropriate URL in your browser. Or just visit the absolute path ofpublic/index.html
.
- Repos listed are ones each user is an
owner
of (notmember
). - Users entered are valid Github users; I didn't implement error handling for users that don't exist.
- Users have at least one repo.
- Users won't have too many repos to display all at once (I didn't implement pagination or infinite scroll).
- Forked and original repos are considered equally.
- Winner is based on total star count.
- Repo names are somewhat short. Github repo names can be up to 100 characters long, but the name length that Code Star can accommodate varies as a function of screen width.