Skip to content

mic-css/octo-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OctoSearch Stories in Ready

A lean GitHub user search built in AngularJS

This project can be viewed live on Heroku at:

http://octosearchleo.herokuapp.com/

Installation

  • Fork this repository on Github and clone down to your local machine
  • Run npm install to install the key packages for the program (this should also run bower install automatically)
  • Run npm start to start the server, then visit http://localhost:8000
$ git clone https://github.com/YOUR-USERNAME/octo-search.git
$ cd octo-search
$ npm install
$ npm start
  • Run gulp to watch and compile any Sass should you want to change the front-end design:
$ gulp sass:watch

Testing

  • To run unit tests with karma run:
$ npm test
  • To run feature tests with protractor make sure you have the server and webdriver-manager running simultaneously in separate terminal panes, and run:
# separate pane
$ npm start
# separate pane
$ webdriver-manager test
# separate pane
$ npm run protractor

Using OctoSearch

  • When the page is visited only the search bar is visible, with a prompt to enter a github user to search

ScreenShot

  • When the name of a user to search is inputted, the Go! button becomes visible which allows the user to submit the search

ScreenShot

  • If a specific username is searched for, the search will return that user, and display their login(username), avatar image, number of followers and number of repositories

ScreenShot

  • The username, followers and repositories titles/icons are all links to the relevant pages on the users' Github public profile

ScreenShot

  • When searching for a more generic name, up to five search results will be displayed

ScreenShot

Design and Technologies used

  • The project uses the Angular JS framework for the front end design, and is structured as a single page application

  • The Angular front-end uses a single controller and a service to manage the http requests to the Github API

  • The backend (for the purposes of deployment) is a simple node.js server using express for routing

  • Sass and CSS was used for the front end design and animations

  • Waffle IO was used for managing the workflow in developing the app

  • Protractor was used for E2E testing, and Karma as the test-runner for the Unit tests, both using the Jasmine testing framework

Struggles and Issues to overcome/fix

  • There is some addition refactoring of the code which could be done to improve the structure, namely:

    • Our existing Angular service has too many responsibilities, and could be refactored into multiple services for the multiple API calls
    • The Angular service could be refactored further using templates and directives
    • Currently only 5 users are displayed for each search, this is an arbitrary constraint introduced to limit the API calls, however testing has shown this may be unnecessary
  • In addition, some more features could be added including:

    • Error handling for the multiple API calls - these calls are currently returning promises so this should be relatively straightforward to implement
    • Continuous deployment from the master branch to Heroku using Codeship or similar
    • Adding Continuous Integration for testing using Travis CI or similar

Future Development

  • The project could be further enhanced by adding additional information on the users return by the search, including;

    • Favourite language(s) - based on the most common languages in the user's repositories
    • Score - implementing a scoring algorithm to rank/order the users return by the search (based on a function of followers, stars, repositories etc)
    • Leo mode - bask in the Glory of LEO!!!!!!

Credits

About

A lean GitHub user search built in AngularJS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •