Skip to content

Angularjs application that consumes github's API to show the most active repositories in the last month and users with most followers last year

License

Notifications You must be signed in to change notification settings

alexgarcia9425/bitsight-test

Repository files navigation

BitSight coding test

This is a coding test for BitSight AngularJS

The application uses angular-seed as a building base. It was build under the two hours time frame.

Hot Repo

The button with id #hot_repo will consume the github API and update a table-like div with the 5 repos with most stars created in the last month

Prolific Users

The button with id #prolific_users will consume the github API and update a table-like div with the 5 users with the most followers who joined in the last year

The number of followers for the users will be automatically updated every 2 minutes.

Prerequisites

You need git to clone the bitsight-test repository. You can get git from here.

We also use a number of Node.js tools to initialize and test. You must have Node.js and its package manager (npm) installed. You can get them from here.

Clone bitsight-test

Clone the bitsight-test repository using git:

git clone https://github.com/alexgarcia9425/bitsight-test.git
cd bitsight-test

Install Dependencies

angular-seed has preconfigured npm to automatically run bower so we can simply do:

npm install

Run the Application

angular-seed has preconfigured the project with a simple development web server. The simplest way to start this server is:

npm start

Now browse to the app at localhost:8000/index.html.

Directory Layout

All github related dependencies can be find in the github folder, including the components used to build the table and rows.

The application logic is in the home controller in home/home.js

Serving the Application Files

While Angular is client-side-only technology and it is possible to create Angular web apps that do not require a backend server at all, we recommend serving the project files using a local web server during development to avoid issues with security restrictions (sandbox) in browsers. The sandbox implementation varies between browsers, but quite often prevents things like cookies, XHR, etc to function properly when an HTML page is opened via the file:// scheme instead of http://.

Contact

For more information on bitsight-test please contact Alex Garcia at: [email protected]

About

Angularjs application that consumes github's API to show the most active repositories in the last month and users with most followers last year

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published