Angular-GH-Page is a simple Angular-app that fetches your GitHub-data via JSONP, displays some general infos about you and a list of your public repositories.
Visit my GitHub-page to get an impression.
First steps
First of all clone this repository:git@github.com:herschel666/angular-gh-page.git && cd angular-gh-page
After that you have to install the dependencies:bower install
npm install
Usage
- Navigate to
assets/scripts/app.js
and set your GitHub-username. The default value after cloning this repo iswillie-t-stokes
. - Build the scripts and stylesheets by running
grunt build
inside your console. - Change the stylesheet-reference inside the
index.html
frommain.css
tomain.min.css
. - Remove all script-includes inside the
index.html
. - Include
bower_components/angular-unstable/angular.min.js
andassets/scripts/app.min.js
inside theindex.html
.
Development
If you don't just want to take this code and upload it but develop on it, do the following:- Leave the
index.html
as it is! - Run
grunt karma
inside your console to start the unit-tests. They re-run every time you save a js-file inside theassets/scripts
-folder or thetest/specs
-folder. - Run
grunt watch
inside your console to automatically compile the SCSS everytime you save a css-file inside theassets/styles/app
-folder. - Write JS and SCSS like there's no tomorrow. Btw: inside
assets/styles/ext/
is an instance of the Bourbon-Mixins-library. Use it, if you like.
Notes
- To install and use the dependencies you will have to have Git, Node.js, Bower, Ruby and SASS installed on your machine. If one of them is missing, an appropriate error message will probably pop up inside your console.
- Angular-GH-Page uses the unauthorized GitHub-API. This works fine but the amount of requests is limited to 60/hour. If your GitHub-page is highly frequented you'll probably have build some kind of proxy-service, that caches the API-data and serves it to the Angular-app.
-
Angular-GH-Page filters all forked repositories from the
repo-list. This is just my personal preference. If you want to include
forked repositories inside your list, remove the
ownRepo
-filter from theng-repeat
inside theindex.html
. If you want to do it thoroughly, remove theassets/scripts/filter/own-repo.js
as well.
from https://github.com/herschel666/angular-gh-page
这其实也是个建站程序。