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.
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
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.
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 the bitsight-test
repository using git:
git clone https://github.com/alexgarcia9425/bitsight-test.git
cd bitsight-test
angular-seed has preconfigured npm
to automatically run bower
so we can simply do:
npm install
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
.
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
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://
.
For more information on bitsight-test please contact Alex Garcia at: [email protected]